Create a new OAuth2 client

Create a new OAuth2 client for third-party applications to use the OAuth2 Authorization Code flow.

Example:

{
  "client_id": "my-application",
  "client_name": "My Application",
  "redirect_uris": ["https://myapp.com/callback", "http://localhost:3000/callback"],
  "scopes": ["sample_read", "sample_write", "experiment_read", "experiment_write"],
  "expires": "2025-12-31T23:59:59Z"
}

The client_id is a caller-supplied, immutable public identifier (3-64 characters; letters, digits, '-' or '_') and must be unique. The client_secret is auto-generated securely, returned in the response, and should be stored securely by the client application.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
redirect_uris
array of strings
redirect_uris
scopes
array of strings
scopes
date-time
Headers
string
Defaults to Swagger
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

201

OAuth2 client created successfully

400

Invalid request parameters

401

Authentication required

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json