Organizations

Retrieve organization details for the authenticated API key

GET /api/v2/organization

Returns the organization associated with the API key used in the request. Use this to verify your key is configured correctly.

Authentication: Bearer token required

ParameterDescription
(none)This endpoint takes no parameters

Example request:

curl https://api.pyramid-ai.com/api/v2/organization \
-H "Authorization: Bearer pai_live_YOUR_KEY"

Example response 200 OK:

{
"success": true,
"data": {
"id": "iPwoNDP1ribwqCTkvlEyiA6DtGZdYe0k",
"name": "AIS Construction Ltd"
},
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
FieldTypeDescription
data.idstringUnique organization identifier
data.namestringOrganization display name

Error responses:

StatusCodeWhen
401UNAUTHORIZEDMissing or invalid API key
404NOT_FOUNDOrganization not found (key may be corrupted)