OAuth applications contain data for clients using Clerk as an OAuth2 identity provider.
This request returns the list of OAuth applications for an instance.
Results can be paginated using the optional limit
and offset
query parameters.
The OAuth applications are ordered by descending creation date.
Most recent OAuth applications will be returned first.
A list of OAuth applications
Request was not successful
Authorization invalid
Invalid request parameters
{- "data": [
- {
- "object": "oauth_application",
- "id": "string",
- "instance_id": "string",
- "name": "string",
- "client_id": "string",
- "public": true,
- "scopes": "string",
- "callback_url": "string",
- "authorize_url": "string",
- "token_fetch_url": "string",
- "user_info_url": "string",
- "created_at": 0,
- "updated_at": 0
}
], - "total_count": 0
}
Creates a new OAuth application with the given name and callback URL for an instance.
The callback URL must be a valid url.
All URL schemes are allowed such as http://
, https://
, myapp://
, etc...
An OAuth application with client secret
Request was not successful
Authorization invalid
Invalid request parameters
{- "name": "string",
- "callback_url": "string",
- "scopes": "profile email public_metadata",
- "public": true
}
{- "object": "oauth_application",
- "id": "string",
- "instance_id": "string",
- "name": "string",
- "client_id": "string",
- "public": true,
- "scopes": "string",
- "callback_url": "string",
- "authorize_url": "string",
- "token_fetch_url": "string",
- "user_info_url": "string",
- "created_at": 0,
- "updated_at": 0,
- "client_secret": "string"
}
Fetches the OAuth application whose ID matches the provided id
in the path.
An OAuth application
Authorization invalid
Resource not found
{- "object": "oauth_application",
- "id": "string",
- "instance_id": "string",
- "name": "string",
- "client_id": "string",
- "public": true,
- "scopes": "string",
- "callback_url": "string",
- "authorize_url": "string",
- "token_fetch_url": "string",
- "user_info_url": "string",
- "created_at": 0,
- "updated_at": 0
}
Updates an existing OAuth application
An OAuth application
Authorization invalid
Resource not found
Invalid request parameters
{- "name": "string",
- "callback_url": "string",
- "scopes": "profile email public_metadata private_metadata"
}
{- "object": "oauth_application",
- "id": "string",
- "instance_id": "string",
- "name": "string",
- "client_id": "string",
- "public": true,
- "scopes": "string",
- "callback_url": "string",
- "authorize_url": "string",
- "token_fetch_url": "string",
- "user_info_url": "string",
- "created_at": 0,
- "updated_at": 0
}
Deletes the given OAuth application. This is not reversible.
Deleted Object
Authorization invalid
Resource not found
{- "object": "string",
- "id": "string",
- "slug": "string",
- "deleted": true
}
Rotates the OAuth application's client secret. When the client secret is rotated, make sure to update it in authorized OAuth clients.
An OAuth application with client secret
Authorization invalid
Resource not found
{- "object": "oauth_application",
- "id": "string",
- "instance_id": "string",
- "name": "string",
- "client_id": "string",
- "public": true,
- "scopes": "string",
- "callback_url": "string",
- "authorize_url": "string",
- "token_fetch_url": "string",
- "user_info_url": "string",
- "created_at": 0,
- "updated_at": 0,
- "client_secret": "string"
}