Skip to content

Retrieve an organization.

Method

GET https://papi.afi.ai/api/v1/orgs/{id}

Description

Retrieves an organization by its ID.

Path params
id string required

ID of the organization to retrieve.

curl -X GET \
    -H 'Authorization: {api-key}' \
    https://papi.afi.ai/api/v1/orgs/{id}

Successful response (200) schema
object

Org represents an organization.

id string

Unique ID of the organization.

external_id string

Unique external ID of the organization.

kind string

Organization kind (distributor, msp, basic).

name string

Organization name.

Response example
{
  "id": "string",
  "external_id": "string",
  "kind": "string",
  "name": "string"
}