Skip to main content
POST
/
api
/
public
/
v1
/
me
/
partner
/
oauth2-clients
Create a new OAuth2 client
curl --request POST \
  --url https://api.flexslot.gg/api/public/v1/me/partner/oauth2-clients \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "application_name": "<string>",
  "redirect_uris": [
    "<string>"
  ],
  "allowed_scopes": [],
  "client_type": "confidential",
  "grant_types": [
    "authorization_code",
    "refresh_token"
  ],
  "application_url": "",
  "application_logo_url": "",
  "privacy_policy_url": "",
  "tos_url": ""
}
'
{
  "client": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "client_id": "<string>",
    "application_name": "<string>",
    "application_url": "<string>",
    "application_logo_url": "<string>",
    "privacy_policy_url": "<string>",
    "tos_url": "<string>",
    "redirect_uris": [
      "<string>"
    ],
    "allowed_scopes": [
      "<string>"
    ],
    "grant_types": [
      "<string>"
    ],
    "require_pkce": true,
    "dpop_bound_access_tokens": true,
    "secret_rotated_at": "2023-11-07T05:31:56Z",
    "last_used_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "plaintext_client_secret": "<string>",
  "secret_rotated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

User-issued personal access token (format: flx_pat_).

Body

application_name
string
required
Required string length: 1 - 255
redirect_uris
string[]
required
Required string length: 1 - 512
allowed_scopes
enum<string>[]
required
  • cards:read - cards:read
  • decks:read - decks:read
  • decks:write - decks:write
  • exports:read - exports:read
  • guides:read - guides:read
  • guides:write - guides:write
  • sideboards:read - sideboards:read
  • sideboards:write - sideboards:write
Available options:
cards:read,
decks:read,
decks:write,
exports:read,
guides:read,
guides:write,
sideboards:read,
sideboards:write
client_type
enum<string>
default:confidential
  • confidential - confidential
  • public - public
Available options:
confidential,
public
grant_types
enum<string>[]
  • authorization_code - authorization_code
  • refresh_token - refresh_token
Available options:
authorization_code,
refresh_token
application_url
string
default:""
Maximum string length: 512
application_logo_url
string
default:""
Maximum string length: 512
privacy_policy_url
string
default:""
Maximum string length: 512
tos_url
string
default:""
Maximum string length: 512

Response

201 - application/json
client
object
required
plaintext_client_secret
string
required
secret_rotated_at
string<date-time> | null
required