Skip to main content
POST
Create a custom targeting key

Authorizations

Authorization
string
header
required

Bearer authentication. Pass the access token in the Authorization: Bearer <token> header.

Body

application/json
code
string
required
Required string length: 1 - 32
Pattern: ^[a-z][a-z0-9._-]{0,31}$
display_name
string
required
Required string length: 1 - 100
type
enum<string>
required
Available options:
predefined,
freeform
description
string | null
ext
any
id
string<uuid> | null
visibility
enum<string>
default:public
Available options:
public,
private

Response

Successful Response

code
string
required
Required string length: 1 - 32
Pattern: ^[a-z][a-z0-9._-]{0,31}$
created_at
string<date-time>
required
display_name
string
required
Required string length: 1 - 100
id
string<uuid>
required
owner_id
string<uuid>
required
type
enum<string>
required
Available options:
predefined,
freeform
updated_at
string<date-time>
required
deprecated
boolean
default:false
description
string | null
ext
any
no
integer | null
value_count
integer
default:0
visibility
enum<string>
default:public
Available options:
public,
private