Skip to content

Get organization by ID

GET
/api/v1/organizations/{orgId}
curl --request GET \
--url https://localhost:10001/api/v1/organizations/example \
--header 'Authorization: <Authorization>'

Retrieve a specific organization by its ID

orgId
required
string

Organization ID or UUID (urn:uuid optional)

Organization

Media type application/json

A company or top-level entity that owns projects and the policy library

object
auth0Id

Deprecated: use idpOrgId

string
createdAt
string format: date-time
description
string
displayName
string
id
integer
idpOrgId

Generic IDP organization ID

string
idpProvider

IDP provider name (auth0, keycloak, etc)

string
name
string
updatedAt
string format: date-time
uuid

Urn:uuid form

string
Example generated
{
"auth0Id": "example",
"description": "example",
"displayName": "example",
"idpOrgId": "example",
"idpProvider": "example",
"name": "example"
}

Bad request - Invalid organization ID

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Unauthorized - Authentication required

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Forbidden - No organization access

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Organization not found

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}

Internal server error

Media type application/json

Error body returned by the governance endpoints; the message is human-readable and not a stable identifier

object
error
string
Example
{
"error": "Invalid request body"
}