Organizations API
Endpoints for managing organizations.
List Organizations
GET /v1/organizationsResponse
{
"organizations": [
{
"id": "org_abc123",
"name": "Acme Corp",
"role": "owner"
}
]
}Get Organization
GET /v1/organizations/:idResponse
{
"id": "org_abc123",
"name": "Acme Corp",
"created_at": "2024-01-01T00:00:00Z",
"member_count": 5,
"plan": "team"
}Create Organization
POST /v1/organizationsBody
{
"name": "My Organization"
}Update Organization
PATCH /v1/organizations/:idBody
{
"name": "New Name"
}Delete Organization
DELETE /v1/organizations/:idRequires owner role.