Endpoints
post/api/v1/token

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

authorization_detailsobject[]

Authorization details for rich authorization requests (RFC 9396). Must be a JSON array of objects, the exact contents of which depend on the identity provider. Texas does not validate this property and only forwards its value to the identity provider.

identity_provider'entra_id' | 'tokenx' | 'maskinporten' | 'idporten' | 'ansattporten' required

Identity providers for use with token fetch, exchange and introspection.

resourcestring nullable

Resource indicator for audience-restricted tokens (RFC 8707).

skip_cacheboolean nullable

Force renewal of token. Defaults to false if omitted.

targetstring required

Scope or identifier for the target application.

Response

Success

access_tokenstring required
expires_ininteger required

Token expiry in seconds. Useful for caching purposes.

token_type'Bearer' required

Token type is always Bearer, but this might change in the future.

Changes

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • info

      added the new ansattporten enum value to the request property (media type: application/json)

    • info

      added the new ansattporten enum value to the request property (media type: application/x-www-form-urlencoded)