Members
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
List all members
Path Parameters
- parent_lookup_organization_idstring
Query Parameters
- limitinteger
- offsetinteger
Response
Request
GET
/api /organizations /:parent_lookup_organization_id /members
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/organizations/:parent_lookup_organization_id/members/
Response
RESPONSE
{"count": 123,"next": "http://api.example.org/accounts/?offset=400&limit=100","previous": "http://api.example.org/accounts/?offset=200&limit=100","results": [{"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","user": {"id": 0,"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f","distinct_id": "string","first_name": "string","email": "user@example.com","is_email_verified": true},"level": 1,"joined_at": "2019-08-24T14:15:22Z","updated_at": "2019-08-24T14:15:22Z","is_2fa_enabled": true,"has_social_auth": true}]}
Update members
Path Parameters
- parent_lookup_organization_idstring
- user__uuidstring
Request Parameters
- levelintegerOne of:
"1"
"8"
"15"
Response
Request
PATCH
/api /organizations /:parent_lookup_organization_id /members /:user__uuid
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl -X PATCH \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/organizations/:parent_lookup_organization_id/members/:user__uuid/\-d user=undefined
Response
RESPONSE
{"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","user": {"id": 0,"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f","distinct_id": "string","first_name": "string","email": "user@example.com","is_email_verified": true},"level": 1,"joined_at": "2019-08-24T14:15:22Z","updated_at": "2019-08-24T14:15:22Z","is_2fa_enabled": true,"has_social_auth": true}
Delete members
Path Parameters
- parent_lookup_organization_idstring
- user__uuidstring
Request
DELETE
/api /organizations /:parent_lookup_organization_id /members /:user__uuid
export POSTHOG_PERSONAL_API_KEY=[your personal api key]curl -X DELETE \-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \https://app.posthog.com/api/organizations/:parent_lookup_organization_id/members/:user__uuid/