Skip to Content
Docs

Get the active profile drain cutoff and expiry

GET
/profiles/{profileId}/drain

Authorization

jwt
headerAuthorizationBearer <JWT>

Path Parameters

profileId*string
Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Length3 <= length <= 64

Response Body

application/json
  1. response
orgId*string
Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Lengthlength <= 63
profileId*string
Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Length3 <= length <= 64
cutoff*string

An ISO 8601 date time string

Match^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$
Formatdate-time
expiresAt*string

An ISO 8601 date time string

Match^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$
Formatdate-time
Example Request
curl -X GET 'https://ai-search.your-tenant-id.my.contextual.io/api/v1/profiles/string/drain'
Example Response
{  "orgId": "string",  "profileId": "string",  "cutoff": "2019-08-24T14:15:22Z",  "expiresAt": "2019-08-24T14:15:22Z"}