# Organizations | AudioDN Docs

> API endpoints for retrieving and updating your AudioDN organization settings, branding, webhooks, and configuration.

Source: https://audiodeliverynetwork.com/docs/api/organizations/

---

# 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\_url is read-only here

The `webhook_url` field is returned for reference but is configured in the dashboard **Settings → Webhook** panel, not through this API. See the [Track Processing webhook](/docs/webhooks/track-processing) docs for the payload and behavior.

GET `/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"
```

```
const response = await fetch('https://api.audiodelivery.net/v1/organization/ORG_ID', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

const data = await response.json();
```

```
import Foundation

func performRequest() async throws {
    var request = URLRequest(url: URL(string: "https://api.audiodelivery.net/v1/organization/ORG_ID")!)
    request.setValue("Bearer YOUR_API_KEY", forHTTPHeaderField: "Authorization")
    let (data, _) = try await URLSession.shared.data(for: request)
    let json = try JSONSerialization.jsonObject(with: data) as! [String: Any]
    // use json
}
```

```
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import okhttp3.*

val client = OkHttpClient()

suspend fun performRequest(): String = withContext(Dispatchers.IO) {
    val request = Request.Builder()
        .url("https://api.audiodelivery.net/v1/organization/ORG_ID")
        .addHeader("Authorization", "Bearer YOUR_API_KEY")
        .build()
    val response = client.newCall(request).execute()
    response.body?.string() ?: error("Empty response body")
}
```

```
import 'dart:convert';
import 'package:http/http.dart' as http;

Future<Map<String, dynamic>> performRequest() async {
  final response = await http.get(
    Uri.parse('https://api.audiodelivery.net/v1/organization/ORG_ID'),
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY',
    },
  );
  if (response.statusCode < 200 || response.statusCode >= 300) {
    throw Exception('Request failed: ${response.statusCode}');
  }
  return jsonDecode(response.body) as Map<String, dynamic>;
}
```

#### 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"
  }
}
```

PUT `/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 |

#### 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"}'
```

```
const response = await fetch('https://api.audiodelivery.net/v1/organization/ORG_ID', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({"name": "My Organization", "player_color": "#FF0000"})
});

const data = await response.json();
```

```
import Foundation

func performRequest() async throws {
    var request = URLRequest(url: URL(string: "https://api.audiodelivery.net/v1/organization/ORG_ID")!)
    request.httpMethod = "PUT"
    request.setValue("Bearer YOUR_API_KEY", forHTTPHeaderField: "Authorization")
    request.setValue("application/json", forHTTPHeaderField: "Content-Type")
    let body = {"name": "My Organization", "player_color": "#FF0000"}
    request.httpBody = try JSONSerialization.data(withJSONObject: body)
    let (data, _) = try await URLSession.shared.data(for: request)
    let json = try JSONSerialization.jsonObject(with: data) as! [String: Any]
    // use json
}
```

```
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.toRequestBody

val client = OkHttpClient()

suspend fun performRequest(): String = withContext(Dispatchers.IO) {
    val body = """{"name": "My Organization", "player_color": "#FF0000"}""".toRequestBody("application/json".toMediaType())
    val request = Request.Builder()
        .url("https://api.audiodelivery.net/v1/organization/ORG_ID")
        .put(body)
        .addHeader("Authorization", "Bearer YOUR_API_KEY")
        .build()
    val response = client.newCall(request).execute()
    response.body?.string() ?: error("Empty response body")
}
```

```
import 'dart:convert';
import 'package:http/http.dart' as http;

Future<Map<String, dynamic>> performRequest() async {
  final response = await http.put(
    Uri.parse('https://api.audiodelivery.net/v1/organization/ORG_ID'),
    headers: {
      'Authorization': 'Bearer YOUR_API_KEY',
      'Content-Type': 'application/json',
    },
    body: jsonEncode({"name": "My Organization", "player_color": "#FF0000"}),
  );
  if (response.statusCode < 200 || response.statusCode >= 300) {
    throw Exception('Request failed: ${response.statusCode}');
  }
  return jsonDecode(response.body) as Map<String, dynamic>;
}
```

#### 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"
  }
}
```
