Developers

Identity Provider API Reference

This section covers all endpoints related to identity provider.

List Scopes

List all available OAuth2 scopes with descriptions. This endpoint is public and can be used for documentation or scope selection UIs.

Endpoint:

Responses

Status CodeDescription
200Successful Response

Get Cli Login Nonce

Get a nonce for CLI-based hotkey signature login.

Endpoint:

Responses

Status CodeDescription
200Successful Response

Cli Login

CLI login endpoint for hotkey signature authentication.

Endpoint:

Parameters

ParameterTypeRequiredDescription
hotkeystringYes
signaturestringYes
noncestringYes

Responses

Status CodeDescription
200Successful Response
422Validation Error

List Apps

List OAuth applications.

By default, returns apps owned by the current user, public apps, and apps shared with the user. Set include_public=false to exclude public apps. Set include_shared=false to exclude apps shared with the user. Use search to filter by name or description.

Endpoint:

Parameters

ParameterTypeRequiredDescription
include_publicboolean | nullNo
include_sharedboolean | nullNo
searchstring | nullNo
pageinteger | nullNo
limitinteger | nullNo
user_idstring | nullNo
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Create App

Create a new OAuth application.

Endpoint:

Parameters

ParameterTypeRequiredDescription
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Request Body

FieldTypeRequiredDescription
namestringYes
descriptionstring | nullNo
redirect_urisstring[]Yes
homepage_urlstring | nullNo
logo_urlstring | nullNo
publicbooleanNo
refresh_token_lifetime_daysinteger | nullNo
allowed_scopesstring[] | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Get App

Get details of an OAuth application.

Endpoint:

Parameters

ParameterTypeRequiredDescription
app_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Update App

Update an OAuth application.

Endpoint:

Parameters

ParameterTypeRequiredDescription
app_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Request Body

FieldTypeRequiredDescription
namestring | nullNo
descriptionstring | nullNo
redirect_urisstring[] | nullNo
homepage_urlstring | nullNo
logo_urlstring | nullNo
activeboolean | nullNo
publicboolean | nullNo
refresh_token_lifetime_daysinteger | nullNo
allowed_scopesstring[] | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Delete App

Delete an OAuth application.

Endpoint:

Parameters

ParameterTypeRequiredDescription
app_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Regenerate App Secret

Regenerate the client secret for an OAuth application.

Endpoint:

Parameters

ParameterTypeRequiredDescription
app_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Share App

Share an OAuth application with another user.

Endpoint:

Parameters

ParameterTypeRequiredDescription
app_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Request Body

FieldTypeRequiredDescription
app_id_or_namestringYes
user_id_or_namestringYes

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Unshare App

Remove sharing of an OAuth application with a user.

Endpoint:

Parameters

ParameterTypeRequiredDescription
app_idstringYes
user_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


List App Shares

List users an OAuth application is shared with.

Endpoint:

Parameters

ParameterTypeRequiredDescription
app_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


List Authorizations

List apps the current user has authorized.

Endpoint:

Parameters

ParameterTypeRequiredDescription
pageinteger | nullNo
limitinteger | nullNo
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Revoke App Authorization

Revoke authorization for an app.

Endpoint:

Parameters

ParameterTypeRequiredDescription
app_idstringYes
X-Chutes-Hotkeystring | nullNo
X-Chutes-Signaturestring | nullNo
X-Chutes-Noncestring | nullNo
Authorizationstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Authentication

This endpoint requires authentication.


Authorize Get

OAuth2 Authorization Endpoint. Displays login page if not authenticated, consent page if authenticated. Checks for existing chutes-session-token cookie for SSO.

Endpoint:

Parameters

ParameterTypeRequiredDescription
response_typestringYes
client_idstringYes
redirect_uristringYes
scopestring | nullNo
statestring | nullNo
code_challengestring | nullNo
code_challenge_methodstring | nullNo

Responses

Status CodeDescription
200Successful Response
422Validation Error

Login Post

Handle login form submission.

Endpoint:

Responses

Status CodeDescription
200Successful Response
422Validation Error

Show authorization consent page.

Endpoint:

Parameters

ParameterTypeRequiredDescription
session_idstringYes

Responses

Status CodeDescription
200Successful Response
422Validation Error

Handle authorization consent form submission.

Endpoint:

Parameters

ParameterTypeRequiredDescription
session_idstringYes

Responses

Status CodeDescription
200Successful Response
422Validation Error

Token Endpoint

OAuth2 Token Endpoint.

Endpoint:

Responses

Status CodeDescription
200Successful Response
422Validation Error

Revoke Token Endpoint

OAuth2 Token Revocation Endpoint (RFC 7009).

Endpoint:

Responses

Status CodeDescription
200Successful Response
422Validation Error

Userinfo Endpoint

OpenID Connect UserInfo Endpoint.

Endpoint:

Responses

Status CodeDescription
200Successful Response

Introspect Token

OAuth2 Token Introspection Endpoint (RFC 7662).

Token format includes embedded token_id for O(1) lookup, so client auth is optional.

Allows clients to check if a token is still valid and get metadata about it. Useful for determining if a user needs to re-authenticate.

Returns: - active: Whether the token is currently valid - exp: Expiration timestamp (Unix epoch) - iat: Issued at timestamp - scope: Space-separated list of scopes - client_id: The client that the token was issued to - username: The user's username - sub: The user's ID

Endpoint:

Responses

Status CodeDescription
200Successful Response
422Validation Error