Skip to content

Get Current Principal

GET /api/v1/auth/principal

Authentication options declared in the contract include user cookie session or bearer service token.

Authentication and permissions explains tokens, cookies, CSRF, and workspace context.

Set the connection variables described in Get started. Replace each additional EOI_… variable with the parameter value for this request. This template sends the request when run.

Terminal window
curl --fail-with-body --silent --show-error \
--header "Authorization: Bearer ${EOI_SERVICE_TOKEN}" \
"${EOI_API_BASE_URL}/auth/principal"

The table records responses declared by the OpenAPI contract. See Errors and status codes for the runtime error envelope and shared failures.

Status Description Media type Body
200 Successful Response application/json PrincipalResponse

Operation identifier getCurrentPrincipal. Browse Authentication and sessions.

Image preview