Principals

Self

Retrieve the currently authenticated principal.

get/principal

Request

  • Base URL
    http://localhost/v1
  • URL
    http://localhost/v1/principal
  • Auth
    none required

Response

Successfully retrieved the principal.

object'principal' required

The object type, which is always principal.

idstring required

ID of the principal.

namestring required

The display name of the principal.

Example response

{
  "object": "principal",
  "id": "api_key_123",
  "name": "My CI/CD Key"
}

Changes

No recorded changes to this operation across all 1 revision of this API.