Skip to main content

Query Organization

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

GET/companypublic keypuk_

Authentication

Include your public key in the Authorization header.

Authorization: puk_xxx...

Query parameters

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

Response structure

FieldTypeDescription
idStringOrganization identifier.
nameStringOrganization 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 organization 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://api.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