POST
/
users
/
{userID}
/
socialAccounts
curl --request POST \
  --url https://backendapi.corbado.io/v2/users/{userID}/socialAccounts \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "providerType": "google",
  "identifierValue": "<string>",
  "foreignID": "<string>",
  "avatarURL": "<string>",
  "fullName": "<string>"
}'
{
  "socialAccountID": "<string>",
  "providerType": "<string>",
  "identifierValue": "<string>",
  "userID": "<string>",
  "foreignID": "<string>",
  "avatarURL": "<string>",
  "fullName": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

userID
string
required

ID of user

Body

application/json

Response

200
application/json

Social account has been created

The response is of type object.