Organizations
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
DELETE | |
GET | |
POST | |
GET |
Retrieve
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizationsExample response
Status 200
Retrieve
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizationsExample response
Status 200
Create
Required API key scopes
organization:writeRequest parameters
- namestring
- logo_media_idstringnull
- enforce_2fabooleannull
- members_can_invitebooleannull
- members_can_create_projectsbooleannull
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedbooleannull
- is_ai_training_opted_inbooleannull
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstringnull
Response
Example request
POST /api /organizationsExample response
Status 201
Create
Required API key scopes
organization:writeRequest parameters
- namestring
- logo_media_idstringnull
- enforce_2fabooleannull
- members_can_invitebooleannull
- members_can_create_projectsbooleannull
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedbooleannull
- is_ai_training_opted_inbooleannull
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstringnull
Response
Example request
POST /api /organizationsExample response
Status 201
Retrieve
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:idExample response
Status 200
Retrieve
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:idExample response
Status 200
Update partial
Required API key scopes
organization:writePath parameters
- idstring
Request parameters
- namestring
- logo_media_idstringnull
- enforce_2fabooleannull
- members_can_invitebooleannull
- members_can_create_projectsbooleannull
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedbooleannull
- is_ai_training_opted_inbooleannull
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstringnull
Response
Example request
PATCH /api /organizations /:idExample response
Status 200
Update partial
Required API key scopes
organization:writePath parameters
- idstring
Request parameters
- namestring
- logo_media_idstringnull
- enforce_2fabooleannull
- members_can_invitebooleannull
- members_can_create_projectsbooleannull
- members_can_use_personal_api_keysboolean
- allow_publicly_shared_resourcesboolean
- is_ai_data_processing_approvedbooleannull
- is_ai_training_opted_inbooleannull
- default_experiment_stats_method
- default_anonymize_ipsboolean
- default_role_idstringnull
Response
Example request
PATCH /api /organizations /:idExample response
Status 200
Delete
Required API key scopes
organization:writePath parameters
- idstring
Example request
DELETE /api /organizations /:idExample response
Status 204 No response body
Delete
Required API key scopes
organization:writePath parameters
- idstring
Example request
DELETE /api /organizations /:idExample response
Status 204 No response body
List all cimd verification tokens
Manage CIMD verification tokens for an organization.
A partner embeds the plaintext token in their CIMD metadata document under
posthog_verification_token. When PostHog fetches the metadata, matching
the token links the partner app to this organization and grants a higher
default rate limit for account provisioning.
The plaintext value is only available on creation; we store a hash.
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /cimd_verification_tokensExample response
Status 200
Create cimd verification tokens
Manage CIMD verification tokens for an organization.
A partner embeds the plaintext token in their CIMD metadata document under
posthog_verification_token. When PostHog fetches the metadata, matching
the token links the partner app to this organization and grants a higher
default rate limit for account provisioning.
The plaintext value is only available on creation; we store a hash.
Required API key scopes
organization:writeRequest parameters
- labelstring
Response
Example request
POST /api /organizations /:organization_id /cimd_verification_tokensExample response
Status 201
Retrieve cimd verification tokens
Manage CIMD verification tokens for an organization.
A partner embeds the plaintext token in their CIMD metadata document under
posthog_verification_token. When PostHog fetches the metadata, matching
the token links the partner app to this organization and grants a higher
default rate limit for account provisioning.
The plaintext value is only available on creation; we store a hash.
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:organization_id /cimd_verification_tokens /:idExample response
Status 200
Delete cimd verification tokens
Manage CIMD verification tokens for an organization.
A partner embeds the plaintext token in their CIMD metadata document under
posthog_verification_token. When PostHog fetches the metadata, matching
the token links the partner app to this organization and grants a higher
default rate limit for account provisioning.
The plaintext value is only available on creation; we store a hash.
Required API key scopes
organization:writePath parameters
- idstring
Example request
DELETE /api /organizations /:organization_id /cimd_verification_tokens /:idExample response
Status 204 No response body
List all domains
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /domainsExample response
Status 200
Create domains
Required API key scopes
organization:writeRequest parameters
- domainstring
- jit_provisioning_enabledboolean
- sso_enforcementstring
- saml_entity_idstringnull
- saml_acs_urlstringnull
- saml_x509_certstringnull
- scim_enabledboolean
Response
Example request
POST /api /organizations /:organization_id /domainsExample response
Status 201
Retrieve domains
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:organization_id /domains /:id