Read an organization entity and its facts by stable identity URI
GET
/api/v1/graph/entities/by-identity
const url = 'https://api.yggy.tech/api/v1/graph/entities/by-identity?uri=https%3A%2F%2Fexample.com';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.yggy.tech/api/v1/graph/entities/by-identity?uri=https%3A%2F%2Fexample.com' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” uri
required
Stable identity URI of the organization entity
string format: uri
Stable identity URI of the organization entity
Responses
Section titled “ Responses ”Entity read
Media type application/json
object
entity
required
object
id
required
string
label
required
string
type
required
string
aliases
required
Array<string>
canonicalId
required
string | null
identity
required
object
uri
required
string | null
namespaceUri
required
string | null
authorityApproved
required
boolean | null
sourceField
required
string | null
sourceValue
required
string | null
homeProjectExternalId
required
string | null
projects
required
Projects the caller can see that hold a fact or literal about the entity (also on the project route)
Array<string>
documents
required
Array<object>
object
documentId
required
string | null
title
required
string | null
facts
required
Array<object>
object
direction
required
string
predicate
required
string
status
required
string
projectExternalId
required
string | null
other
required
object
label
required
string
type
required
string
identityUri
required
string | null
literals
required
Array<object>
object
property
required
string
value
required
string
datatype
required
string
sourceField
required
string
status
required
string
projectExternalId
required
string
truncated
required
True when a fact or literal list hit the read cap; the read is partial
boolean
Example
{ "documents": [ { "facts": [ { "direction": "outgoing", "status": "ACTIVE" } ], "literals": [ { "datatype": "BOOLEAN", "status": "ACTIVE" } ] } ]}Entity not found
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}