Create an API key
The scope defaults to admin when omitted.
Authorizations
Project-scoped API key. It cannot access account routes or create additional projects.
Headers
API contract version requested by the client. Omit this header to use the current backward-compatible behavior.
v1 Project public ID (prj_...) targeted by this personal-access-token request. Optional. Selection precedence is: {project_id} path parameter, X-Bisibility-Project header, project query parameter, then inference when the PAT owner belongs to exactly one project. Project API keys and paths that already carry a project ID ignore it.
Query Parameters
Query-parameter equivalent of the X-Bisibility-Project header for personal-access-token project selection. Optional. Selection precedence is: {project_id} path parameter, X-Bisibility-Project header, project query parameter, then inference when the PAT owner belongs to exactly one project.
Body
1 - 80Lifetime in days. Use null for no expiry.
30, 90, 365, null Access tier. When omitted, defaults to admin for backward compatibility.
read, write, admin Response
Created
^key_[a-z][a-z0-9]{23}$"key_a00000000000000000000000"
"bsb_key_live_xxxxxxxx"
read, write, admin "bsb_key_live_..."