API Documentation
Applications ¶
A brand may register external applications (e.g. Contact or Deal apps) that can later be referenced from other parts of the platform — for example, by SSO applications whose authentication_type is Application.
Each application belongs to a brand and has an application_type of Contact, Contacts, Deal, Generic, or Integration.
Create an application ¶
Create an applicationPOST/brands/:brand/applications
Creates an application under the given brand. The body must include a url and an application_type (Contact, Contacts, Deal, Generic, or Integration).
Example URI
POST /brands/:brand/applications
URI Parameters
- brand
string(required) Example: 5e32ecd5-ec61-4571-a20d-33f0e5852486
Request
Body
{
"url": "https://example.com/app",
"application_type": "Deal"
}Response
200Body
{
"code": "OK",
"data": {
"id": "a91e18a9-fb86-467a-a4a2-e0cb927db1d7",
"created_at": 1796326552.435477,
"updated_at": 1796326552.435477,
"deleted_at": null,
"url": "https://example.com/app",
"application_type": "Deal",
"brand": "5e32ecd5-ec61-4571-a20d-33f0e5852486",
"type": "application"
}
}Get applications for a brand ¶
Get applications for a brandGET/brands/:brand/applications
Example URI
GET /brands/:brand/applications
URI Parameters
- brand
string(required) Example: 5e32ecd5-ec61-4571-a20d-33f0e5852486
Response
200Body
{
"code": "OK",
"data": [
{
"id": "a91e18a9-fb86-467a-a4a2-e0cb927db1d7",
"created_at": 1796326552.435477,
"updated_at": 1796326552.435477,
"deleted_at": null,
"url": "https://example.com/app",
"application_type": "Deal",
"brand": "5e32ecd5-ec61-4571-a20d-33f0e5852486",
"type": "application"
}
],
"info": {
"count": 1,
"total": 0
}
}