Skip to content
Docs

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.

GET/idp/scopes
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/scopes"
  -H "Content-Type: application/json"
Request Configuration
Authorization

Endpoint:

Responses

Status CodeDescription
200Successful Response

Get Cli Login Nonce

Get a nonce for CLI-based hotkey signature login.

GET/idp/cli_login/nonce
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/cli_login/nonce"
  -H "Content-Type: application/json"
Request Configuration
Authorization

Endpoint:

Responses

Status CodeDescription
200Successful Response

Cli Login

CLI login endpoint for hotkey signature authentication.

GET/idp/cli_login
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/cli_login"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

GET/idp/apps
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/apps"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

POST/idp/apps
API
Code Examples
curl -X POST "https://api.chutes.ai/idp/apps"
  -H "Content-Type: application/json"
  -d '{}'
Request Configuration
Authorization
Request Body

Endpoint:

Parameters

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

Request Body

FieldTypeRequiredDescription
namestringYes
descriptionstring | nullNo
redirect_urisstringYes
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.

GET/idp/apps/{app_id}
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/apps/{app_id}"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

PATCH/idp/apps/{app_id}
API
Code Examples
curl -X PATCH "https://api.chutes.ai/idp/apps/{app_id}"
  -H "Content-Type: application/json"
  -d '{}'
Request Configuration
Authorization
Request Body

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.

DELETE/idp/apps/{app_id}
API
Code Examples
curl -X DELETE "https://api.chutes.ai/idp/apps/{app_id}"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

POST/idp/apps/{app_id}/regenerate-secret
API
Code Examples
curl -X POST "https://api.chutes.ai/idp/apps/{app_id}/regenerate-secret"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

POST/idp/apps/{app_id}/share
API
Code Examples
curl -X POST "https://api.chutes.ai/idp/apps/{app_id}/share"
  -H "Content-Type: application/json"
  -d '{}'
Request Configuration
Authorization
Request Body

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.

DELETE/idp/apps/{app_id}/share/{user_id}
API
Code Examples
curl -X DELETE "https://api.chutes.ai/idp/apps/{app_id}/share/{user_id}"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

GET/idp/apps/{app_id}/shares
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/apps/{app_id}/shares"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

GET/idp/authorizations
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/authorizations"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

DELETE/idp/authorizations/{app_id}
API
Code Examples
curl -X DELETE "https://api.chutes.ai/idp/authorizations/{app_id}"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

GET/idp/authorize
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/authorize"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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.

POST/idp/login
API
Code Examples
curl -X POST "https://api.chutes.ai/idp/login"
  -H "Content-Type: application/json"
Request Configuration
Authorization

Endpoint:

Responses

Status CodeDescription
200Successful Response
422Validation Error

Show authorization consent page.

GET/idp/authorize/consent
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/authorize/consent"
  -H "Content-Type: application/json"
Request Configuration
Authorization

Endpoint:

Parameters

ParameterTypeRequiredDescription
session_idstringYes

Responses

Status CodeDescription
200Successful Response
422Validation Error

Handle authorization consent form submission.

POST/idp/authorize/consent
API
Code Examples
curl -X POST "https://api.chutes.ai/idp/authorize/consent"
  -H "Content-Type: application/json"
Request Configuration
Authorization

Endpoint:

Parameters

ParameterTypeRequiredDescription
session_idstringYes

Responses

Status CodeDescription
200Successful Response
422Validation Error

Token Endpoint

OAuth2 Token Endpoint.

POST/idp/token
API
Code Examples
curl -X POST "https://api.chutes.ai/idp/token"
  -H "Content-Type: application/json"
Request Configuration
Authorization

Endpoint:

Responses

Status CodeDescription
200Successful Response
422Validation Error

Revoke Token Endpoint

OAuth2 Token Revocation Endpoint (RFC 7009).

POST/idp/token/revoke
API
Code Examples
curl -X POST "https://api.chutes.ai/idp/token/revoke"
  -H "Content-Type: application/json"
Request Configuration
Authorization

Endpoint:

Responses

Status CodeDescription
200Successful Response
422Validation Error

Userinfo Endpoint

OpenID Connect UserInfo Endpoint.

GET/idp/userinfo
API
Code Examples
curl -X GET "https://api.chutes.ai/idp/userinfo"
  -H "Content-Type: application/json"
Request Configuration
Authorization

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

POST/idp/token/introspect
API
Code Examples
curl -X POST "https://api.chutes.ai/idp/token/introspect"
  -H "Content-Type: application/json"
Request Configuration
Authorization

Endpoint:

Responses

Status CodeDescription
200Successful Response
422Validation Error