Organizations
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
POST | |
GET | |
GET | |
GET | |
GET | |
GET | |
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
- enforce_verified_domainsbooleannull
- members_can_invitebooleannull
- members_can_create_projectsbooleannull
- members_can_use_personal_api_keysboolean
- members_can_see_org_membersboolean
- allow_publicly_shared_resourcesboolean
- read_only_mcp_accessbooleannull
- is_ai_data_processing_approvedbooleannull
- is_ai_training_opted_inbooleannull
- 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
- enforce_verified_domainsbooleannull
- members_can_invitebooleannull
- members_can_create_projectsbooleannull
- members_can_use_personal_api_keysboolean
- members_can_see_org_membersboolean
- allow_publicly_shared_resourcesboolean
- read_only_mcp_accessbooleannull
- is_ai_data_processing_approvedbooleannull
- is_ai_training_opted_inbooleannull
- 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
- enforce_verified_domainsbooleannull
- members_can_invitebooleannull
- members_can_create_projectsbooleannull
- members_can_use_personal_api_keysboolean
- members_can_see_org_membersboolean
- allow_publicly_shared_resourcesboolean
- read_only_mcp_accessbooleannull
- is_ai_data_processing_approvedbooleannull
- is_ai_training_opted_inbooleannull
- 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
- enforce_verified_domainsbooleannull
- members_can_invitebooleannull
- members_can_create_projectsbooleannull
- members_can_use_personal_api_keysboolean
- members_can_see_org_membersboolean
- allow_publicly_shared_resourcesboolean
- read_only_mcp_accessbooleannull
- is_ai_data_processing_approvedbooleannull
- is_ai_training_opted_inbooleannull
- 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
Create remove blocked members and enforce verified domains
Remove the members whose email domain is outside the organization's verified domains and turn
enforce_verified_domains on, in one transaction. Owners are never removed; they keep gated
access and can disable the setting themselves. Admin only.
Use this only when the caller has confirmed the removals. To turn the setting on without
touching memberships, PATCH enforce_verified_domains on the organization instead.
Path parameters
- idstring
Response
Example request
POST /api /organizations /:id /remove_blocked_members_and_enforce_verified_domainsExample response
Status 200
Create request ai access
Notify organization admins that a member is requesting PostHog AI be enabled.
Path parameters
- idstring
Response
Example request
POST /api /organizations /:id /request_ai_accessExample response
Status 200
Retrieve teams data freshness
When each project in the organization last received data, broken down by kind of data.
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:id /teams /data_freshnessExample response
Status 200
Retrieve billing features
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /featuresExample response
Status 200
Retrieve billing forecast
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /forecastExample response
Status 200
List all billing invoices
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- cursorstring
- limitinteger
- statusstringOne of:
"open""paid""uncollectible""void"
Response
Example request
GET /api /organizations /:organization_id /billing /invoicesExample response
Status 200
Retrieve billing invoices content
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readPath parameters
- invoice_idstring
Example request
GET /api /organizations /:organization_id /billing /invoices /:invoice_id /contentExample response
Status 200
Retrieve billing limits
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /limits