Skip to content
API reference

Agency

Clients, their teams and agency-wide views.

GET/agency/activity

Get activity (agencys)

ParameterInTypeNotes
clientIdquerystring (uuid)
fromquerystring (date)
toquerystring (date)
curl -X GET https://crm.anibrosdesign.com/api/v1/agency/activity \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 429

GET/agency/clients

Get clients (agencys)

curl -X GET https://crm.anibrosdesign.com/api/v1/agency/clients \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 429

POST/agency/clients

Clients (agencys)

Body fieldTypeNotes
name requiredstringat least 1 characters. up to 120 characters
curl -X POST https://crm.anibrosdesign.com/api/v1/agency/clients \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"name":"text"}'

Responses: 201 400 401 402 429

GET/agency/clients/{id}

Get clients (agency)

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X GET https://crm.anibrosdesign.com/api/v1/agency/clients/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 404 429

PATCH/agency/clients/{id}

Change clients (agency)

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X PATCH https://crm.anibrosdesign.com/api/v1/agency/clients/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 402 404 412 429

POST/agency/clients/{id}/archive

Archive (agencys)

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X POST https://crm.anibrosdesign.com/api/v1/agency/clients/{id}/archive \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 201 400 401 402 404 429

POST/agency/clients/{id}/custom-fields/copy

Copy (agencys)

ParameterInTypeNotes
id requiredpathstring (uuid)
Body fieldTypeNotes
fromClientId requiredstring (uuid)
curl -X POST https://crm.anibrosdesign.com/api/v1/agency/clients/{id}/custom-fields/copy \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"fromClientId":"01a15d23-0000-7000-8000-000000000000"}'

Responses: 201 400 401 402 404 429

POST/agency/clients/{id}/delete

Delete (agencys)

ParameterInTypeNotes
id requiredpathstring (uuid)
Body fieldTypeNotes
confirmName requiredstringat least 1 characters. up to 120 characters
curl -X POST https://crm.anibrosdesign.com/api/v1/agency/clients/{id}/delete \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"confirmName":"text"}'

Responses: 200 400 401 402 404 429

POST/agency/clients/{id}/restore

Restore (agencys)

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X POST https://crm.anibrosdesign.com/api/v1/agency/clients/{id}/restore \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 201 400 401 402 404 429

GET/agency/clients/{id}/team

Get team (agencys)

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X GET https://crm.anibrosdesign.com/api/v1/agency/clients/{id}/team \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 404 429

PUT/agency/clients/{id}/team/{userId}

Set team (agency)

ParameterInTypeNotes
id requiredpathstring (uuid)
userId requiredpathstring (uuid)
Body fieldTypeNotes
role requiredone of sales_agent, broker, sales_manager, marketing_manager, marketing_analyst, executive_readonly
channelslist of one of call, whatsapp, sms, email, instagram, meeting or null
curl -X PUT https://crm.anibrosdesign.com/api/v1/agency/clients/{id}/team/{userId} \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"role":"sales_agent","channels":["call"]}'

Responses: 200 400 401 402 404 412 429

DELETE/agency/clients/{id}/team/{userId}

Remove team (agency)

ParameterInTypeNotes
id requiredpathstring (uuid)
userId requiredpathstring (uuid)
curl -X DELETE https://crm.anibrosdesign.com/api/v1/agency/clients/{id}/team/{userId} \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 402 404 429

GET/agency/export

Get export (agencys)

curl -X GET https://crm.anibrosdesign.com/api/v1/agency/export \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 429

GET/agency/leads

Get leads (agencys)

ParameterInTypeNotes
clientIdquerystring (uuid)
qquerystringup to 100 characters
statusquerystring
statequeryone of open, closed
ownerIdquerystring (uuid) or one of unassigned or one of me
sourcequeryone of website, referral, portal, direct, meta_ads, google_ads, walk_in, other
channelqueryone of meta, google, bing, linkedin, tiktok, website, whatsapp, referral, portal, walk_in, manual, other
tagquerystringup to 40 characters
scoreMinqueryintegerat least 0. up to 100
createdFromquerystring
createdToquerystring
testqueryone of exclude
slaqueryone of breached, at_risk
followupqueryone of overdue, today
fieldquerystring
fieldValuequerystringup to 200 characters
poolqueryone of true
pagequeryintegerat least 1. default 1
pageSizequeryintegerat least 1. up to 100. default 50
sortqueryone of created, updated, score, valuedefault "created"
orderqueryone of asc, descdefault "desc"
curl -X GET https://crm.anibrosdesign.com/api/v1/agency/leads \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 429

GET/agency/leads/export

Get export (agencys)

ParameterInTypeNotes
formatqueryone of xlsx, csvdefault "xlsx"
datasetqueryone of leads, activitiesdefault "leads"
clientIdquerystring (uuid)
qquerystringup to 100 characters
statusquerystringup to 200 characters
statequeryone of open, closed
ownerIdquerystringup to 36 characters
sourcequerystringup to 40 characters
tagquerystringup to 40 characters
scoreMinqueryintegerat least 0. up to 100
createdFromquerystring
createdToquerystring
testqueryone of exclude
slaqueryone of breached, at_risk
followupqueryone of overdue, today
fieldquerystring
fieldValuequerystringup to 200 characters
poolqueryone of true
channelqueryone of meta, google, bing, linkedin, tiktok, website, whatsapp, referral, portal, walk_in, manual, other
campaignIdquerystring (uuid)
adsetIdquerystring
adIdquerystring
formIdquerystring
stageIdquerystring (uuid)
curl -X GET https://crm.anibrosdesign.com/api/v1/agency/leads/export \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 429

GET/agency/leads/export/count

Count the leads an agency download would hold

The same filters as the agency download. Name one workspace with clientId (a client, or the agency's own company) or leave it out for every client. Answers { leads, clients, limit, tooMany }.

ParameterInTypeNotes
formatqueryone of xlsx, csvdefault "xlsx"
datasetqueryone of leads, activitiesdefault "leads"
clientIdquerystring (uuid)
qquerystringup to 100 characters
statusquerystringup to 200 characters
statequeryone of open, closed
ownerIdquerystringup to 36 characters
sourcequerystringup to 40 characters
tagquerystringup to 40 characters
scoreMinqueryintegerat least 0. up to 100
createdFromquerystring
createdToquerystring
testqueryone of exclude
slaqueryone of breached, at_risk
followupqueryone of overdue, today
fieldquerystring
fieldValuequerystringup to 200 characters
poolqueryone of true
channelqueryone of meta, google, bing, linkedin, tiktok, website, whatsapp, referral, portal, walk_in, manual, other
campaignIdquerystring (uuid)
adsetIdquerystring
adIdquerystring
formIdquerystring
stageIdquerystring (uuid)
curl -X GET https://crm.anibrosdesign.com/api/v1/agency/leads/export/count \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 429

GET/agency/leads/unread

Get unread (agencys)

curl -X GET https://crm.anibrosdesign.com/api/v1/agency/leads/unread \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 429

GET/agency/options

Get options (agencys)

curl -X GET https://crm.anibrosdesign.com/api/v1/agency/options \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 429

GET/agency/overview

Get overview (agencys)

curl -X GET https://crm.anibrosdesign.com/api/v1/agency/overview \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 429

GET/agency/report

Get report (agencys)

ParameterInTypeNotes
fromquerystring
toquerystring
includeTestqueryone of true, falsedefault "false"
clientIdquerystring (uuid)
curl -X GET https://crm.anibrosdesign.com/api/v1/agency/report \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 429

GET/agency/staff

Get staff (agencys)

curl -X GET https://crm.anibrosdesign.com/api/v1/agency/staff \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 429

POST/agency/staff

Staff (agencys)

Body fieldTypeNotes
email requiredstring (email)up to 254 characters
curl -X POST https://crm.anibrosdesign.com/api/v1/agency/staff \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"email":"name@example.com"}'

Responses: 201 400 401 402 429

POST/agency/staff/invitations

Invitations (agencys)

Body fieldTypeNotes
email requiredstring (email)up to 254 characters
curl -X POST https://crm.anibrosdesign.com/api/v1/agency/staff/invitations \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"email":"name@example.com"}'

Responses: 201 400 401 402 429

PATCH/agency/staff/{userId}

Change staff (agency)

ParameterInTypeNotes
userId requiredpathstring (uuid)
Body fieldTypeNotes
agencyRole requiredone of admin, staff
curl -X PATCH https://crm.anibrosdesign.com/api/v1/agency/staff/{userId} \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"agencyRole":"admin"}'

Responses: 200 400 401 402 404 412 429

DELETE/agency/staff/{userId}

Remove staff (agency)

ParameterInTypeNotes
userId requiredpathstring (uuid)
curl -X DELETE https://crm.anibrosdesign.com/api/v1/agency/staff/{userId} \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 402 404 429

GET/agency/tasks

Get tasks (agencys)

curl -X GET https://crm.anibrosdesign.com/api/v1/agency/tasks \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 429

GET/agency/unread

Get unread (agencys)

curl -X GET https://crm.anibrosdesign.com/api/v1/agency/unread \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 401 429

Something missing or unclear? Tell us.

Chat on WhatsApp