Skip to main content
POST
/
v1
/
account.createConnection
Create OAuth or domain connection
curl --request POST \
  --url https://api.steamsets.com/v1/account.createConnection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "123456",
  "provider": "discord"
}'
{
  "$schema": "https://api.steamsets.com/schemas/V1AccountCreateConnectionResponseBody.json",
  "code": "ABC123",
  "connectionId": "ABC123"
}
This endpoint is not intended for public use and requires user authentication

Authentication Required

This endpoint requires an active user session and cannot be accessed via API keys. It’s designed for authenticated user interactions within the web application.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
code
string
required

The code from the oauth2 provider to verify

Examples:

"123456"

provider
enum<string>
required

The provider to connect with

Available options:
discord,
patreon,
kick,
reddit,
twitch,
youtube,
x,
domain
Examples:

"discord"

Response

OK

code
string
required

Code that has to be used to verify domain connections

Examples:

"ABC123"

$schema
string<uri>

A URL to the JSON Schema for this object.

Examples:

"https://api.steamsets.com/schemas/V1AccountCreateConnectionResponseBody.json"

connectionId
string | null

Public ID of the connection only for domain connections

Examples:

"ABC123"