Add a user identity

POST /api/my-account/identities

Add an identity (social identity) to the user, a logto-verification-id in header is required for checking sensitive permissions, and a verification record for the social identity is required.

application/json

Body Required

  • newIdentifierVerificationRecordId string Required

    The identifier verification record ID for the new social identity ownership verification.

Responses

  • 204

    The identity was added successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

POST /api/my-account/identities
curl \
 --request POST 'https://[tenant_id].logto.app/api/my-account/identities' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"newIdentifierVerificationRecordId":"string"}'
Request examples
{
  "newIdentifierVerificationRecordId": "string"
}