CRM
List CRM record relationships
GET
/
v1
/
crm
/
object-types
/
{objectKind}
/
records
/
{objectID}
/
relationships
List CRM record relationships
curl --request GET \
--url https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/relationshipsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/relationships', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/relationships"
response = requests.get(url)
print(response.text){
"items": [
{
"created_at": "<string>",
"from_object_id": "<string>",
"from_object_kind": "<string>",
"id": "<string>",
"is_primary": true,
"metadata": "<unknown>",
"related_object_id": "<string>",
"related_object_kind": "<string>",
"relationship_definition_id": "<string>",
"relationship_key": "<string>",
"to_object_id": "<string>",
"to_object_kind": "<string>",
"updated_at": "<string>",
"role": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
List CRM record relationships
curl --request GET \
--url https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/relationshipsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/relationships', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/crm/object-types/{objectKind}/records/{objectID}/relationships"
response = requests.get(url)
print(response.text){
"items": [
{
"created_at": "<string>",
"from_object_id": "<string>",
"from_object_kind": "<string>",
"id": "<string>",
"is_primary": true,
"metadata": "<unknown>",
"related_object_id": "<string>",
"related_object_kind": "<string>",
"relationship_definition_id": "<string>",
"relationship_key": "<string>",
"to_object_id": "<string>",
"to_object_kind": "<string>",
"updated_at": "<string>",
"role": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}