GET
/
integrations
from portkey_ai import Portkey

# Initialize the Portkey client
portkey = Portkey(
api_key="PORTKEY_API_KEY",
)

# List integrations
integrations = portkey.integrations.list()

print(integrations)
{
  "object": "list",
  "total": 123,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "ai_provider_id": "<string>",
      "name": "<string>",
      "status": "active",
      "created_at": "2023-11-07T05:31:56Z",
      "last_updated_at": "2023-11-07T05:31:56Z",
      "slug": "<string>",
      "description": "<string>",
      "object": "integration"
    }
  ]
}

Authorizations

x-portkey-api-key
string
header
required

Query Parameters

current_page
integer

Current page, defaults to 0

page_size
integer

Page size, default to 100

workspace_id
string

Filter integrations accessible by a specific workspace. When using workspace API keys, this value will be enforced based on the API key details

type
enum<string>
default:all

For type=workspace, the API will only return Workpace-Scoped integrations. For type=organisation, the API will only return Global (organisation level) integrations. For type=all, both types of integrations will be returned.

Available options:
workspace,
organisation,
all

Response

200 - application/json

Successful response

The response is of type object.