Organizations
Organizations are top-level entities that contain collections and tracks. Manage organization settings, themes, and player configurations.
Responses include two read-only companions to player_color: player_color_light (adjusted to stay legible on a light background) and player_color_dark (adjusted for a dark background). They are derived from player_color by shifting brightness until each meets a minimum contrast, and cannot be set directly.
Webhook URLs have their own endpoints
Branding fields on PUT /v1/organization/:id do not accept webhook URLs. Configure and test webhooks via the dedicated /webhooks sub-resource below (full API Access key required). Deliveries are unsigned (X-ADN-Event header only) — make handlers idempotent. See the Track Processing webhook docs for payload shapes.
/v1/organization/:organization_id Returns details about a specific organization
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Required | The ID of the organization to retrieve (path parameter) |
Example Request
curl -X GET "https://api.audiodelivery.net/v1/organization/ORG_ID" \
-H "Authorization: Bearer YOUR_API_KEY" Response
{
"ok": true,
"api_request_id": "uuid",
"organization_id": "uuid",
"organization": {
"id": "uuid",
"name": "string",
"theme": [],
"is_theme_overridable": true,
"is_cover_overridable": true,
"player_color": "string",
"player_color_light": "string | null",
"player_color_dark": "string | null",
"player_subtitle": "string",
"webhook_url": "string | null",
"webhook_url_collection": "string | null",
"webhook_url_file": "string | null"
}
} /v1/organization/:organization_id Updates an existing organization
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Required | The ID of the organization to update (path parameter) |
name | string | Optional | Name of the organization |
theme | array of objects | Optional | Colors extracted from cover images. Array of color objects with hex, area, lightness, saturation values |
is_theme_overridable | boolean | Optional | Whether organization image colors can be overridden |
is_cover_overridable | boolean | Optional | Whether organization cover can be overridden |
player_color | string | Optional | Player color for the organization (hex color) |
player_subtitle | string | Optional | Player subtitle for the organization |
default_collection_id | uuid | null | Optional | Collection used when callers omit collection_id |
Example Request
curl -X PUT "https://api.audiodelivery.net/v1/organization/ORG_ID" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My Organization",
"player_color": "#FF0000"
}' Response
{
"ok": true,
"api_request_id": "uuid",
"organization_id": "uuid",
"organization": {
"id": "uuid",
"name": "string",
"theme": [],
"is_theme_overridable": true,
"is_cover_overridable": true,
"player_color": "string",
"player_color_light": "string | null",
"player_color_dark": "string | null",
"player_subtitle": "string"
}
} Webhooks
Three URL columns on the organization: Track Processing (webhook_url), Collection Sync (webhook_url_collection), and Track File / Output (webhook_url_file). All webhook endpoints require a full API Access key. Empty string clears a URL; omitted fields are left unchanged. URLs must be https.
/v1/organization/:organization_id/webhooks Returns the three webhook URL columns. Requires a full API Access key.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Required | The ID of the organization (path parameter) |
Example Request
curl -X GET "https://api.audiodelivery.net/v1/organization/ORG_ID/webhooks" \
-H "Authorization: Bearer YOUR_API_KEY" Response
{
"ok": true,
"api_request_id": "uuid",
"organization_id": "uuid",
"webhooks": {
"webhook_url": "https://hooks.example.com/track",
"webhook_url_collection": null,
"webhook_url_file": null
}
} /v1/organization/:organization_id/webhooks Set or clear webhook URLs. Empty string clears; omitted fields unchanged. Requires a full API Access key.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Required | The ID of the organization (path parameter) |
webhook_url | string | Optional | Track Processing webhook URL (https). Empty string clears. |
webhook_url_collection | string | Optional | Collection Sync webhook URL (https). Empty string clears. |
webhook_url_file | string | Optional | Track File / Output webhook URL (https). Empty string clears. |
Example Request
curl -X PUT "https://api.audiodelivery.net/v1/organization/ORG_ID/webhooks" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhook_url": "https://hooks.example.com/track"
}' Response
{
"ok": true,
"api_request_id": "uuid",
"organization_id": "uuid",
"webhooks": {
"webhook_url": "https://hooks.example.com/track",
"webhook_url_collection": null,
"webhook_url_file": null
}
} /v1/organization/:organization_id/webhooks/test Synchronously POST a synthetic sample event to a configured or supplied URL. Requires a full API Access key. Does not write to the delivery log.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Required | The ID of the organization (path parameter) |
channel | string | Optional | One of track | collection | file (default track). Selects which configured URL to use when url is omitted. |
url | string | Optional | Optional override target URL (https). |
event | string | Optional | Optional X-ADN-Event override. Defaults: track.status_changed, collection.updated, track_file.created. |
Example Request
curl -X POST "https://api.audiodelivery.net/v1/organization/ORG_ID/webhooks/test" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel": "track"
}' Response
{
"ok": true,
"api_request_id": "uuid",
"organization_id": "uuid",
"delivered": true,
"status": "200",
"response_snippet": "ok",
"event": "track.status_changed",
"channel": "track",
"target": "https://hooks.example.com/track"
}