Integrations-2

For instructions on how to authenticate to use this endpoint, see API overview.

Endpoints

GET
PATCH
POST
GET
GET
POST
GET
GET
GET
GET

Retrieve environments integrations clickup workspaces

Path parameters

  • id
    integer

Example request

GET /api/environments/:environment_id/integrations/:id/clickup_workspaces
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/clickup_workspaces/

Example response

Status 200 No response body

Retrieve environments integrations clickup workspaces

Path parameters

  • id
    integer

Example request

GET /api/environments/:environment_id/integrations/:id/clickup_workspaces
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/clickup_workspaces/

Example response

Status 200 No response body

Update environments integrations email

Path parameters

  • id
    integer

Request parameters

  • kind
  • config

Response


Example request

PATCH /api/environments/:environment_id/integrations/:id/email
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X PATCH \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/email/\
-d kind=undefined

Example response

Status 200
RESPONSE
{
"id": 0,
"kind": "anthropic",
"config": null,
"created_at": "2019-08-24T14:15:22Z",
"created_by": {
"id": 0,
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"distinct_id": "string",
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"is_email_verified": true,
"hedgehog_config": {},
"role_at_organization": "engineering"
},
"errors": "string",
"display_name": "string"
}

Update environments integrations email

Path parameters

  • id
    integer

Request parameters

  • kind
  • config

Response


Example request

PATCH /api/environments/:environment_id/integrations/:id/email
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl -X PATCH \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/email/\
-d kind=undefined

Example response

Status 200
RESPONSE
{
"id": 0,
"kind": "anthropic",
"config": null,
"created_at": "2019-08-24T14:15:22Z",
"created_by": {
"id": 0,
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"distinct_id": "string",
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"is_email_verified": true,
"hedgehog_config": {},
"role_at_organization": "engineering"
},
"errors": "string",
"display_name": "string"
}

Create environments integrations email verify

Path parameters

  • id
    integer

Request parameters

  • kind
  • config

Example request

POST /api/environments/:environment_id/integrations/:id/email/verify
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/email/verify/\
-d kind=undefined

Example response

Status 200 No response body

Create environments integrations email verify

Path parameters

  • id
    integer

Request parameters

  • kind
  • config

Example request

POST /api/environments/:environment_id/integrations/:id/email/verify
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/email/verify/\
-d kind=undefined

Example response

Status 200 No response body

Retrieve environments integrations github branches

Required API key scopes

integration:read

Path parameters

  • id
    integer

Query parameters

  • limit
    integer
    Default: 100
  • offset
    integer
    Default: 0
  • repo
    string
  • search
    string
    Default:

Response


Example request

GET /api/environments/:environment_id/integrations/:id/github_branches
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/github_branches/

Example response

Status 200
RESPONSE
{
"branches": [
"string"
],
"default_branch": "string",
"has_more": true
}

Retrieve environments integrations github branches

Required API key scopes

integration:read

Path parameters

  • id
    integer

Query parameters

  • limit
    integer
    Default: 100
  • offset
    integer
    Default: 0
  • repo
    string
  • search
    string
    Default:

Response


Example request

GET /api/environments/:environment_id/integrations/:id/github_branches
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/github_branches/

Example response

Status 200
RESPONSE
{
"branches": [
"string"
],
"default_branch": "string",
"has_more": true
}

Retrieve environments integrations github repos

Required API key scopes

integration:read

Path parameters

  • id
    integer

Query parameters

  • limit
    integer
    Default: 100
  • offset
    integer
    Default: 0
  • search
    string
    Default:

Response


Example request

GET /api/environments/:environment_id/integrations/:id/github_repos
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/github_repos/

Example response

Status 200
RESPONSE
{
"repositories": [
{
"id": 0,
"name": "string",
"full_name": "string"
}
],
"has_more": true
}

Retrieve environments integrations github repos

Required API key scopes

integration:read

Path parameters

  • id
    integer

Query parameters

  • limit
    integer
    Default: 100
  • offset
    integer
    Default: 0
  • search
    string
    Default:

Response


Example request

GET /api/environments/:environment_id/integrations/:id/github_repos
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/github_repos/

Example response

Status 200
RESPONSE
{
"repositories": [
{
"id": 0,
"name": "string",
"full_name": "string"
}
],
"has_more": true
}

Create environments integrations github repos refresh

Required API key scopes

integration:write

Path parameters

  • id
    integer

Response


Example request

POST /api/environments/:environment_id/integrations/:id/github_repos/refresh
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/github_repos/refresh/

Example response

Status 200
RESPONSE
{
"repositories": [
{
"id": 0,
"name": "string",
"full_name": "string"
}
]
}

Create environments integrations github repos refresh

Required API key scopes

integration:write

Path parameters

  • id
    integer

Response


Example request

POST /api/environments/:environment_id/integrations/:id/github_repos/refresh
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/github_repos/refresh/

Example response

Status 200
RESPONSE
{
"repositories": [
{
"id": 0,
"name": "string",
"full_name": "string"
}
]
}

Retrieve environments integrations github teams

Required API key scopes

integration:read

Path parameters

  • id
    integer

Query parameters

  • limit
    integer
    Default: 100
  • offset
    integer
    Default: 0
  • search
    string
    Default:

Response


Example request

GET /api/environments/:environment_id/integrations/:id/github_teams
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/github_teams/

Example response

Status 200
RESPONSE
{
"teams": [
{
"id": 0,
"slug": "string",
"name": "string"
}
],
"has_more": true
}

Retrieve environments integrations github teams

Required API key scopes

integration:read

Path parameters

  • id
    integer

Query parameters

  • limit
    integer
    Default: 100
  • offset
    integer
    Default: 0
  • search
    string
    Default:

Response


Example request

GET /api/environments/:environment_id/integrations/:id/github_teams
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/github_teams/

Example response

Status 200
RESPONSE
{
"teams": [
{
"id": 0,
"slug": "string",
"name": "string"
}
],
"has_more": true
}

Retrieve environments integrations google accessible accounts

Path parameters

  • id
    integer

Example request

GET /api/environments/:environment_id/integrations/:id/google_accessible_accounts
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/google_accessible_accounts/

Example response

Status 200 No response body

Retrieve environments integrations google accessible accounts

Path parameters

  • id
    integer

Example request

GET /api/environments/:environment_id/integrations/:id/google_accessible_accounts
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/google_accessible_accounts/

Example response

Status 200 No response body

Retrieve environments integrations google conversion actions

Path parameters

  • id
    integer

Example request

GET /api/environments/:environment_id/integrations/:id/google_conversion_actions
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/google_conversion_actions/

Example response

Status 200 No response body

Retrieve environments integrations google conversion actions

Path parameters

  • id
    integer

Example request

GET /api/environments/:environment_id/integrations/:id/google_conversion_actions
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/google_conversion_actions/

Example response

Status 200 No response body

Retrieve environments integrations jira projects

Path parameters

  • id
    integer

Example request

GET /api/environments/:environment_id/integrations/:id/jira_projects
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/jira_projects/

Example response

Status 200 No response body

Retrieve environments integrations jira projects

Path parameters

  • id
    integer

Example request

GET /api/environments/:environment_id/integrations/:id/jira_projects
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:environment_id/integrations/:id/jira_projects/

Example response

Status 200 No response body

Community questions

Questions about this page? or post a community question.