Plugins

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

List all plugins

Path Parameters

  • parent_lookup_organization_id
    string

Query Parameters

  • limit
    integer
  • offset
    integer

Response


Request

GET /api/organizations/:parent_lookup_organization_id/plugins
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/plugins/

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": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}
]
}

Create plugins

Path Parameters

  • parent_lookup_organization_id
    string

Request Parameters

  • plugin_type
    string
    One of: "local""custom""repository""source"
  • name
    string
  • description
    string
  • icon
    string
  • config_schema
    object
  • tag
    string
  • is_global
    boolean
  • capabilities
    object
  • metrics
    object
  • public_jobs
    object

Response


Request

POST /api/organizations/:parent_lookup_organization_id/plugins
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
https://app.posthog.com/api/organizations/:parent_lookup_organization_id/plugins/\
-d plugin_type="string"

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Retrieve plugins

Path Parameters

  • id
    integer
  • parent_lookup_organization_id
    string

Response


Request

GET /api/organizations/:parent_lookup_organization_id/plugins/:id
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/plugins/:id/

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Update plugins

Path Parameters

  • id
    integer
  • parent_lookup_organization_id
    string

Request Parameters

  • plugin_type
    string
    One of: "local""custom""repository""source"
  • name
    string
  • description
    string
  • icon
    string
  • config_schema
    object
  • tag
    string
  • is_global
    boolean
  • capabilities
    object
  • metrics
    object
  • public_jobs
    object

Response


Request

PATCH /api/organizations/:parent_lookup_organization_id/plugins/:id
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/plugins/:id/\
-d plugin_type="string"

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Delete plugins

Path Parameters

  • id
    integer
  • parent_lookup_organization_id
    string

Request

DELETE /api/organizations/:parent_lookup_organization_id/plugins/:id
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/plugins/:id/

Response

No response

Retrieve plugins check for updates

Path Parameters

  • id
    integer
  • parent_lookup_organization_id
    string

Response


Request

GET /api/organizations/:parent_lookup_organization_id/plugins/:id/check_for_updates
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/plugins/:id/check_for_updates/

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Retrieve plugins source

Path Parameters

  • id
    integer
  • parent_lookup_organization_id
    string

Response


Request

GET /api/organizations/:parent_lookup_organization_id/plugins/:id/source
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/plugins/:id/source/

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Update plugins update source

Path Parameters

  • id
    integer
  • parent_lookup_organization_id
    string

Request Parameters

  • plugin_type
    string
    One of: "local""custom""repository""source"
  • name
    string
  • description
    string
  • icon
    string
  • config_schema
    object
  • tag
    string
  • is_global
    boolean
  • capabilities
    object
  • metrics
    object
  • public_jobs
    object

Response


Request

PATCH /api/organizations/:parent_lookup_organization_id/plugins/:id/update_source
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/plugins/:id/update_source/\
-d plugin_type="string"

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Create plugins upgrade

Path Parameters

  • id
    integer
  • parent_lookup_organization_id
    string

Request Parameters

  • plugin_type
    string
    One of: "local""custom""repository""source"
  • name
    string
  • description
    string
  • icon
    string
  • config_schema
    object
  • tag
    string
  • is_global
    boolean
  • capabilities
    object
  • metrics
    object
  • public_jobs
    object

Response


Request

POST /api/organizations/:parent_lookup_organization_id/plugins/:id/upgrade
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
https://app.posthog.com/api/organizations/:parent_lookup_organization_id/plugins/:id/upgrade/\
-d plugin_type="string"

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Retrieve plugins activity

Path Parameters

  • parent_lookup_organization_id
    string

Response


Request

GET /api/organizations/:parent_lookup_organization_id/plugins/activity
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/plugins/activity/

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Retrieve plugins repository

Path Parameters

  • parent_lookup_organization_id
    string

Response


Request

GET /api/organizations/:parent_lookup_organization_id/plugins/repository
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/plugins/repository/

Response

RESPONSE
{
"id": 0,
"plugin_type": "local",
"name": "string",
"description": "string",
"url": "string",
"icon": "string",
"config_schema": {
"property1": null,
"property2": null
},
"tag": "string",
"latest_tag": "string",
"is_global": true,
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
"organization_name": "string",
"capabilities": {
"property1": null,
"property2": null
},
"metrics": {
"property1": null,
"property2": null
},
"public_jobs": {
"property1": null,
"property2": null
}
}

Questions?

Was this page useful?