Skip to main content
POST
/
api
/
v1
/
realms
/
{realmId}
/
credentials
/
social
cURL
curl --request POST \
  --url https://api.drip.re/api/v1/realms/{realmId}/credentials/social \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "provider": "<string>",
  "providerId": "<string>",
  "username": "<string>",
  "accountId": "<string>",
  "metadata": {}
}'
{
  "id": "<string>",
  "format": "<string>",
  "publicIdentifier": "<string>",
  "oauthProvider": "<string>",
  "oauthAccountId": "<string>",
  "isVerified": true,
  "accountId": "<string>",
  "createdAt": "<string>"
}

Authorizations

Authorization
string
header
required

API Key

Path Parameters

realmId
string
required

Realm ID

Body

application/json
provider
string
required

Social provider name (e.g., twitter, discord, telegram, github, google, facebook, or any custom provider)

providerId
string
required

User ID from the social provider

username
string

Username on the social platform

accountId
string

Optional: Link this credential to an existing account immediately

metadata
object

Additional metadata

Response

200 - application/json

Default Response

id
string
format
string
publicIdentifier
string
oauthProvider
string
oauthAccountId
string
isVerified
boolean
accountId
string
createdAt
string