{ "opencollection": "1.0.0", "info": { "name": "CockroachDB Cloud APIKeys Auth API", "version": "2024-09-16" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Auth", "type": "folder" }, "items": [ { "info": { "name": "Create a session", "type": "http" }, "http": { "method": "POST", "url": "https://cockroachlabs.cloud/api/v2/login/", "body": { "type": "json", "data": "{}" } }, "docs": "Creates an authenticated API session by supplying valid SQL username and password credentials. Returns a session token in the X-Cockroach-API-Session response header. This token must be included as the X-Cockroach-API-Session header on all subsequent requests to authenticated endpoints." }, { "info": { "name": "Terminate a session", "type": "http" }, "http": { "method": "POST", "url": "https://cockroachlabs.cloud/api/v2/logout/" }, "docs": "Terminates a previously established API session, invalidating the session token. The X-Cockroach-API-Session header must be included with the session token to revoke." } ] } ], "bundled": true }