Get an organization.
GET
/api/admin/organizations/{id}
Code sample: Shell / cURL
curl --request GET \ --url https://auth.example.com/api/admin/organizations/example \ --header 'Authorization: Bearer <token>'Returns one organization for the current tenant plus member_count. Boolean fields are normalized and timestamps are returned in milliseconds.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Responses
Section titled “ Responses ”Organization response.
Media type application/json
object
organization
required
object
id
required
string
tenant_id
required
string
name
required
string
display_name
required
string | null
parent_org_id
required
string | null
path
required
string
depth
required
integer
org_type
required
string
metadata_json
object
key
additional properties
is_active
required
boolean
created_at
required
integer format: int64
updated_at
required
integer format: int64
member_count
integer
key
additional properties
key
additional properties
Example
{ "organization": { "id": "org_acme", "tenant_id": "default", "name": "engineering", "display_name": "Engineering", "parent_org_id": null, "path": "/engineering", "depth": 0, "org_type": "department", "metadata_json": {}, "is_active": true, "created_at": 1770000000, "updated_at": 1770000000, "member_count": 12 }}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}