Create social verification

POST /api/experience/verification/social/{connectorId}/authorization-uri

Create a new SocialVerification record and return the provider's authorization URI for the given connector.

Path parameters

  • connectorId string Required

    The unique identifier of the connector.

application/json

Body Required

  • state string Required

    The state parameter to pass to the social connector.

  • redirectUri string Required

    The URI to redirect the user after the social authorization is completed.

Responses

  • 200 application/json

    The social authorization URI has been successfully generated.

    Hide response attributes Show response attributes object
    • authorizationUri string Required

      The social authorization URI.

    • verificationId string Required

      The unique verification ID of the newly created SocialVerification record. The verificationId is required when verifying the social authorization response.

  • Bad Request

  • The social connector is not found.

  • Connector error. Failed to generate the social authorization URI.

POST /api/experience/verification/social/{connectorId}/authorization-uri
curl \
 -X POST https://[tenant_id].logto.app/api/experience/verification/social/{connectorId}/authorization-uri \
 -H "Content-Type: application/json" \
 -d '{"state":"string","redirectUri":"string"}'
Request examples
{
  "state": "string",
  "redirectUri": "string"
}
Response examples (200)
{
  "authorizationUri": "string",
  "verificationId": "string"
}