pixel

Create Server Api Key

Create a backend-only server events key.

The raw secret is returned once as secret_key. Store it in the client backend environment; never expose it in browser or mobile code.

post/api/v1/pixel/server-keys

Request

  • Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trylapis.com/api/v1/pixel/server-keys
  • Auth: HTTP bearer

Request body

labelstring nullable

Human-readable key label

pixel_api_key_idinteger nullable

Optional public pixel key scope. If set, server events can only attach to sessions from this pixel key.

Response

Successful Response

idinteger required
key_prefixstring required
labelstring nullable required
pixel_api_key_idinteger nullable required
is_activeboolean required
rolestring
created_atstring date-time required
last_used_atstring date-time nullable required
revoked_atstring date-time nullable required
secret_keystring required

Changes

No recorded changes to this operation across all 1 revision of this API.