Skip to content
Start here

Tokens

List tokens.
client.aiSearch.tokens.list(TokenListParams { account_id, order_by, order_by_direction, 2 more } params, RequestOptionsoptions?): V4PagePaginationArray<TokenListResponse { id, cf_api_id, created_at, 6 more } >
GET/accounts/{account_id}/ai-search/tokens
Create new tokens.
client.aiSearch.tokens.create(TokenCreateParams { account_id, cf_api_id, cf_api_key, name } params, RequestOptionsoptions?): TokenCreateResponse { id, cf_api_id, created_at, 6 more }
POST/accounts/{account_id}/ai-search/tokens
Read tokens.
client.aiSearch.tokens.read(stringid, TokenReadParams { account_id } params, RequestOptionsoptions?): TokenReadResponse { id, cf_api_id, created_at, 6 more }
GET/accounts/{account_id}/ai-search/tokens/{id}
Update tokens.
client.aiSearch.tokens.update(stringid, TokenUpdateParams { account_id, cf_api_id, cf_api_key, name } params, RequestOptionsoptions?): TokenUpdateResponse { id, cf_api_id, created_at, 6 more }
PUT/accounts/{account_id}/ai-search/tokens/{id}
Delete tokens.
client.aiSearch.tokens.delete(stringid, TokenDeleteParams { account_id } params, RequestOptionsoptions?): TokenDeleteResponse { id, cf_api_id, created_at, 6 more }
DELETE/accounts/{account_id}/ai-search/tokens/{id}
ModelsExpand Collapse
TokenListResponse { id, cf_api_id, created_at, 6 more }
id: string
formatuuid
cf_api_id: string
created_at: string
formatdate-time
modified_at: string
formatdate-time
name: string
created_by?: string | null
enabled?: boolean
legacy?: boolean
modified_by?: string | null
TokenCreateResponse { id, cf_api_id, created_at, 6 more }
id: string
formatuuid
cf_api_id: string
created_at: string
formatdate-time
modified_at: string
formatdate-time
name: string
created_by?: string | null
enabled?: boolean
legacy?: boolean
modified_by?: string | null
TokenReadResponse { id, cf_api_id, created_at, 6 more }
id: string
formatuuid
cf_api_id: string
created_at: string
formatdate-time
modified_at: string
formatdate-time
name: string
created_by?: string | null
enabled?: boolean
legacy?: boolean
modified_by?: string | null
TokenUpdateResponse { id, cf_api_id, created_at, 6 more }
id: string
formatuuid
cf_api_id: string
created_at: string
formatdate-time
modified_at: string
formatdate-time
name: string
created_by?: string | null
enabled?: boolean
legacy?: boolean
modified_by?: string | null
TokenDeleteResponse { id, cf_api_id, created_at, 6 more }
id: string
formatuuid
cf_api_id: string
created_at: string
formatdate-time
modified_at: string
formatdate-time
name: string
created_by?: string | null
enabled?: boolean
legacy?: boolean
modified_by?: string | null