Get Organization
Retrieves a single organization by its ID.
Endpoint
GET /api/organizations/:id
Authentication
Requires API Key authentication.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Organization ID |
Response
Returns the organization object.
{
"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"
}
}
Example
curl -X GET "https://api.silentwitness.ai/api/organizations/org_abc123def456" \
-H "X-API-Key: $API_KEY"
Errors
| Code | Description |
|---|---|
| 401 | Unauthorized - Invalid or missing token |
| 404 | Organization not found |
| 500 | Internal server error |
Example Error
{
"success": false,
"error": "Organization not found"
}