List relationships
GET
/api/tenant/{tenantId}/Relationships
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api.nimles.com/crm/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Relationships"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://api.nimles.com/crm/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Relationships';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.nimles.com/crm/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Relationships \ --header 'Authorization: Bearer <token>'Lists the relationships the caller may read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantId
required
string format: uuid
Your tenant id.
Query Parameters
Section titled “Query Parameters”ids
Array<string>
The relationships to list, or all.
parentId
string format: uuid
Only the relationships under this parent.
role
string
Only relationships with this role (exactly, PascalCase).
related
string
Only relationships related to this entity: {entityType}:{entityId}, such as company:{id}.
relationType
string
With related: only this relation type, such as party.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
fields
object
key
additional properties
string
data
Array<object>
object
fields
object
key
additional properties
object
value
valueType
string
values
object
key
additional properties
object
value
source
object
sourceId
string
runId
string
actor
string
at
string format: date-time
evidence
string
aiProvenance
object
model
string
templateVersion
string
inputCodes
Array<string>
runId
string
client
string
reviewedBy
string
reviewedAt
string format: date-time
lock
object
by
string
at
string format: date-time
source
object
sourceId
string
runId
string
actor
string
at
string format: date-time
evidence
string
aiProvenance
object
model
string
templateVersion
string
inputCodes
Array<string>
runId
string
client
string
reviewedBy
string
reviewedAt
string format: date-time
lock
object
by
string
at
string format: date-time
accessibility
string
id
string format: uuid
relations
Array<object>
object
fields
object
key
additional properties
object
value
valueType
string
values
object
key
additional properties
object
value
source
object
sourceId
string
runId
string
actor
string
at
string format: date-time
evidence
string
aiProvenance
object
model
string
templateVersion
string
inputCodes
Array<string>
runId
string
client
string
reviewedBy
string
reviewedAt
string format: date-time
lock
object
by
string
at
string format: date-time
source
object
sourceId
string
runId
string
actor
string
at
string format: date-time
evidence
string
aiProvenance
object
model
string
templateVersion
string
inputCodes
Array<string>
runId
string
client
string
reviewedBy
string
reviewedAt
string format: date-time
lock
object
by
string
at
string format: date-time
accessibility
string
id
string format: uuid
name
string
entityId
required
string format: uuid
entityType
required
string
relationType
required
string
tenantId
string format: uuid
resourceGroupId
string format: uuid
creatorId
string format: uuid
createdDate
string format: date-time
version
integer format: int32
lastModified
string format: date-time
contactType
string
role
string
parentId
string format: uuid
contact
object
contactType
string
parentId
string format: uuid
userId
string format: uuid
organizationId
string format: uuid
organizationMemberId
string format: uuid
address
object
coAddress
string
state
string
country
string
name
string
firstName
string
lastName
string
street
string
postalCode
string
city
string
email
string
phoneNumbers
Array<object>
object
number
string
type
string
isPrimary
boolean
website
string
comments
string
name
string
firstName
string
lastName
string
domain
string
identityNumber
string
Example
{ "data": [ { "contactType": "Undefined", "contact": { "contactType": "Undefined" } } ]}Unauthorized: no bearer token, or one that is expired or not for this API.
Forbidden: the caller holds no role that allows this action at this scope. The body is empty, or a problem whose detail names the action.
Media typeapplication/json
An RFC 9457 problem.
object
detail
string
instance
string
status
integer format: int32
title
string
type
string
key
additional properties
Example generated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}