Our Python SDK got smarter. We developed a Typscript SDK too. We are updating our SDK code blocks. Python SDKhere.Typscript SDKhere.
Description
Patronus AI APIProduct context

List Product Context Definitions

GET
/v1/product-context-definition
/v1/product-context-definition

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Query Parameters

project_id
Required
Project Id

Filter by project ID

Format: "uuid"

nameName

Filter by exact product context definition name

name_startswithName Startswith

Filter by product context definition name prefix

product_context_idProduct Context Id

Filter by specific product context definition ID

limitLimit

Maximum number of records to return

Default: 1000

offsetOffset

Number of records to skip

Default: 0
curl -X GET "https://api.patronus.ai/v1/product-context-definition?project_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&name=string&name_startswith=string&product_context_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&limit=1000&offset=0" \
  -H "X-API-KEY: <token>"

Successful Response

{
  "product_context_definitions": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
      "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
      "name": "string",
      "description": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "latest_revision": 0
    }
  ]
}