StoreBay Developers
Oauth

OAuth2 authorization endpoint

Starts the authorization-code + PKCE flow for marketplace apps acting on behalf of an operator. On approval, redirects to `redirect_uri` with a short-lived `code` (and the `state`). PKCE (`S256`) is required.

GET
/oauth/authorize

Starts the authorization-code + PKCE flow for marketplace apps acting on behalf of an operator. On approval, redirects to redirect_uri with a short-lived code (and the state). PKCE (S256) is required.

Query Parameters

response_type*"code"

Must be code.

Value in

  • "code"
client_id*string
redirect_uri*string
Formaturi
scope?string

Space-delimited scopes requested.

state?string

Opaque value echoed back to defend against CSRF.

code_challenge*string

PKCE code challenge.

code_challenge_method*"S256"

Must be S256.

Value in

  • "S256"

Response Body

application/json

curl -X GET "https://example.com/oauth/authorize?response_type=code&client_id=string&redirect_uri=http%3A%2F%2Fexample.com&code_challenge=string&code_challenge_method=S256"
Empty
{  "error": "invalid_grant",  "error_description": "string"}