Skip to main content
POST
/
oauth
/
register
Dynamic Client Registration
curl --request POST \
  --url https://api.headlesscommerce.io/v1/oauth/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_name": "<string>",
  "redirect_uris": [
    "<string>"
  ],
  "grant_types": [
    "authorization_code",
    "refresh_token"
  ],
  "token_endpoint_auth_method": "none",
  "scope": "<string>",
  "logo_uri": "<string>",
  "client_uri": "<string>"
}
'
{
  "client_id": "<string>",
  "client_secret": "<string>",
  "client_name": "<string>",
  "redirect_uris": [
    "<string>"
  ],
  "grant_types": [
    "<string>"
  ],
  "token_endpoint_auth_method": "<string>",
  "scope": "<string>",
  "logo_uri": "<string>",
  "client_uri": "<string>"
}

Body

application/json
client_name
string
required

Human-readable client name

redirect_uris
string<uri>[]
required

Registered redirect URIs

Minimum array length: 1
grant_types
enum<string>[]
Available options:
authorization_code,
refresh_token
token_endpoint_auth_method
enum<string>
default:none
Available options:
none,
client_secret_post
scope
string

Default scopes

logo_uri
string<uri>
client_uri
string<uri>

Response

Client registered

client_id
string
client_secret
string | null
client_name
string
redirect_uris
string[]
grant_types
string[]
token_endpoint_auth_method
string
scope
string | null
logo_uri
string | null
client_uri
string | null