Shield

Create a bypass token

Changed on

Monitors, CI and API clients that send it in X-Temps-Shield-Token are never challenged or blocked. The token is returned this once; only its hash is stored.

post/projects/{project_id}/environments/{environment_id}/shield/tokens

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

environment_idinteger required

Environment ID

Request body

namestring required

What uses it: uptime monitor, CI.

project_wideboolean

Valid for every environment of the project, not only this one.

Response

Token created; secret is shown only now

created_atstring date-time required
created_byinteger nullable
environment_idinteger nullable

The environment it is limited to; null for a project-wide token.

idinteger required
last_used_atstring date-time nullable
namestring required
scope'environment' | 'project' required

Which environments a bypass token is valid for.

secretstring required

Send it in X-Temps-Shield-Token.

Example response

{
  "secret": "tst_12_…"
}

Changes

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    3 more changes in this revision