Reference
Approve login
Approves a sign-in the CLI started: its key starts to work, with this scope.
POST
bearerheader
AuthorizationBearer <token>code*stringMatch
^[A-HJ-NP-Z2-9]{4}-[A-HJ-NP-Z2-9]{4}$/iapplication/json- body
environment*|The environment the key works in. Null for every one: organization admins only.
Match
^[A-Za-z0-9_-][A-Za-z0-9._-]{0,99}$role*RoleWhat a caller may do. read: files and history. write: also fork, commit and merge. admin: also keys, namespaces, protected branches and the audit log.
Value in
"read""write""admin"The key.
application/json- response
id*stringname*stringrole*RoleWhat a caller may do. read: files and history. write: also fork, commit and merge. admin: also keys, namespaces, protected branches and the audit log.
Value in
"read""write""admin"environment*string|nullcurl -X POST 'https://example.com/v1/logins/string' \ -H 'Content-Type: application/json' \ -d '{ "environment": "string", "role": "read"}'Example Response
{ "id": "string", "name": "string", "role": "read", "environment": "string"}