//Org API

Organization Management API

Endpoints

POST /api/organizations

Creates a new organization.

Input: ~~~json { "name": "new-org-name", "org_display_name": "New Org Name", "appid": 50 } ~~~

Output: ~~~json { "data": { "id": 1, "org_uuid": "uuid", "name": "new-org-name" } } ~~~

GET /api/organizations/:org_uuid/teams

Lists all teams for a given organization.

Output: ~~~json { "data": [{ "id": 1, "name": "Developers", "team_uuid": "uuid" }] } ~~~

PUT /api/organizations/:org_uuid

Updates an organization's details.

Input: ~~~json { "name": "Updated Org Name", "status": true } ~~~

Output: ~~~json { "status": "updated successfully" } ~~~

POST /api/organizations/:org_uuid/api-keys

Creates an organization API key.

Output: ~~~json { "apiKey": "sk_live_..." } ~~~