Create OAuth Client
Create a new OAuth client for API access.
OAuth clients enable:
- Third-party application integration
- Service-to-service authentication
- Mobile app authentication
- CLI tool access
Choosing the Right Grant Type:
Grant Type Details:
- authorization_code: User authorizes app via browser, app exchanges code for tokens
- client_credentials: Service authenticates directly with client_id/secret (no user)
- refresh_token: Exchange refresh token for new access token (add to other grants)
- implicit: Deprecated - Use authorization_code + PKCE instead
PKCE Support:
- Enable PKCE for public clients (mobile apps, SPAs)
- Supports S256 (SHA-256) and plain challenge methods
- Required for clients without client secrets
type — user client or service account:
type accepts exactly "user" (the default) or "project", and decides whose
permissions the client carries. Any other value is rejected with 422.
"user": the client acts as the user who created it and inherits that user’s permissions. Only that user is made an owner of the client."project": a service account is created for the client, so it carries project-level permissions rather than one person’s, and every member of the project is granted viewer access to the client. Use this for automation that must keep working after the creating user leaves.
type is not echoed back: it appears on no response field, so read it back
from behaviour rather than from the created object.
Fields silently ignored: the request model is UserOAuthClientCreate. Any
key it does not declare is dropped rather than rejected — notably scopes,
profile and access_token_type, which appeared in older references. Scopes
are fixed at offline_access and the access token type at opaque; sending
different values changes nothing and the create still returns 200.
client_secret is returned only once, in this response — store it securely.
Every later read of the client reports client_secret: null. Public clients
(token_endpoint_auth_method: "none") are issued no secret at all, so their
create response also carries null.
Authentication
API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.
API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.
Path parameters
Request
List of authorized redirect URIs. Required if using authorization_code or implicit grant types.
Type of OAuth client to create:
- user: Standard client tied to creating user’s permissions
- project: Service account client with project-level permissions
Authentication method for the client:
- client_secret_basic: Client ID and secret sent in HTTP headers
- client_secret_post: Client ID and secret sent in request body
- none: No client authentication (required for public clients using PKCE)
Whether to require PKCE (Proof Key for Code Exchange) for authorization code flows. PKCE enhances security by requiring code_challenge and code_verifier parameters. IMPORTANT: Only applicable when ‘authorization_code’ is included in grant_types. Strongly recommended for public clients (mobile apps, SPAs) and beneficial for all clients.
PKCE code challenge method when PKCE is enabled.
- S256: SHA256 hash of code verifier (recommended and secure)
- plain: Plain text code verifier (not recommended, only for testing)
Response
Human-readable name for the OAuth client.
List of authorized redirect URIs for OAuth flows requiring user interaction. Required for authorization code and implicit flows. Must be exact matches when used. Must use HTTPS in production (except for localhost).
OAuth 2.0 grant types enabled for this client.
- client_credentials: For server-to-server API access
- authorization_code: For web and mobile apps
- refresh_token: For maintaining long-term access
- implicit: Legacy flow, not recommended for new applications
Secret key used to authenticate the client. Only shown once upon creation. Must be stored securely. Required for confidential clients (e.g., server applications).
Authentication method enabled for the client:
- client_secret_basic: Client ID and secret sent in HTTP headers
- client_secret_post: Client ID and secret sent in request body
- none: No client authentication (required for public clients using PKCE)
Whether PKCE (Proof Key for Code Exchange) is required for this client. When enabled, authorization code flows must include code_challenge and code_verifier. Recommended for public clients (mobile apps, SPAs) and enhances security for all clients.
PKCE code challenge method when PKCE is enabled.
- S256: SHA256 hash of code verifier (recommended and secure)
- plain: Plain text code verifier (not recommended, only for testing)