ManagementGet the caller's current access code
Get the caller's current access code
1 min readEdit this page
Returns the repository-configured policy bound to the caller, its validity status, and optional quota consumption. Returns 404 when the caller has no code binding.
Requires the user:read scope.
x-api-key<token>
Anthropic-style API key header.
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/access-codes/me"{ "code": "string", "ends_at": "2019-08-24T14:15:22Z", "policy_id": "string", "quota": { "consumed": 0, "limit": 0, "unit": "string" }, "starts_at": "2019-08-24T14:15:22Z", "status": "string"}{ "error": "string", "error_description": "string"}{ "error": "string", "error_description": "string"}{ "error": "string", "error_description": "string"}How is this guide?