Skip to main content

Query company

Service to query your company data: name, logo, visual customization options (white label) and the configured webhooks.

GET /v1.5/ext/company HTTP/1.1
HOST: {{api_auco}}
Authorization: {{public_key}}

Authentication

Include your public key in the Authorization header.

Authorization: puk_xxx...

Query parameters

This service does not receive parameters. The company is identified from the public key sent in the Authorization header.

Response structure

FieldTypeDescription
idStringCompany identifier.
nameStringCompany name.
webhooksArrayList of configured webhooks. Each element contains id, description, url and header. See Webhooks.
uxOptionsObjectVisual customization options (white label), for example primaryColor and alternateColor.
imageStringURL of the company logo.
webhookString(Legacy) URL of the single webhook. Kept for compatibility; use webhooks.
webhookHeaderObject(Legacy) Header { key, value } of the single webhook. Kept for compatibility; use webhooks.
Legacy fields

webhook and webhookHeader are returned only for legacy integrations. The current notification configuration is done through the webhooks array (see Webhooks).

🧪 Usage example

curl -X GET 'https://dev.auco.ai/v1.5/ext/company' \
-H 'Authorization: puk_public_key_company'

📥 Response example

{
"id": "61ba073970df523d9d232a27",
"name": "Auco",
"webhooks": [
{
"id": "default",
"description": "Webhook principal",
"url": "https://miempresa.com/webhooks/auco",
"header": {
"key": "Authorization",
"value": "Bearer ..."
}
}
],
"uxOptions": {
"primaryColor": "#021C30",
"alternateColor": "#A557F2"
},
"image": "https://static.micontrato.co/companies/61ba073970df523d9d232a27/logo.png",
"webhook": "",
"webhookHeader": {}
}

⚠️ Error Responses

CodeDescription
401Invalid or missing authentication