List Organizations
Returns a list of all organizations in your account.
Endpoint
GET /api/organizations
Authentication
Requires API Key authentication.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number |
limit | integer | 20 | Items per page (max 100) |
Response
Returns an array of organization objects.
{
"success": true,
"data": [
{
"id": "org_abc123def456",
"account_id": "acc_xyz789",
"name": "Smith & Associates Law Firm",
"phone_number": "555-123-4567",
"street_address": "123 Main Street, Suite 400",
"city": "San Francisco",
"state": "CA",
"zip_code": "94102",
"country": "United States",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
{
"id": "org_def456ghi789",
"account_id": "acc_xyz789",
"name": "Johnson Legal Group",
"phone_number": "555-987-6543",
"street_address": "456 Oak Avenue",
"city": "Los Angeles",
"state": "CA",
"zip_code": "90001",
"country": "United States",
"created_at": "2024-01-10T08:15:00Z",
"updated_at": "2024-01-10T08:15:00Z"
}
]
}
Example
curl -X GET "https://api.silentwitness.ai/api/organizations" \
-H "X-API-Key: $API_KEY"
With Pagination
curl -X GET "https://api.silentwitness.ai/api/organizations?page=2&limit=10" \
-H "X-API-Key: $API_KEY"
Errors
| Code | Description |
|---|---|
| 401 | Unauthorized - Invalid or missing token |
| 500 | Internal server error |