Skip to Content
Docs
API referenceManagement API

Account linking

GET
/authn/account-linking-config

Get the instance's account-linking settings: what a first sign-in through a social or enterprise connection does when its email already belongs to an account. An instance that never saved them links by the defaults, both settings on. Linking always needs the address verified on both sides, by a provider trusted to vouch for it and on the account; no setting turns that off.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Response Body

OK

application/json
  1. response
allow_manual_linking?boolean

AllowManualLinking lets a signed-in user link a provider account to themselves, POST /v1/me/external-identities. Off, starting a link is refused 403 permission_denied. Default true.

auto_link_by_email?boolean

AutoLinkByEmail links a first provider sign-in to the account with the same email when the provider vouches for the address and the account has verified it. Off, every such sign-in is refused 409 auth_provider_link_required. Default true.

object?string
updated_at?string

UpdatedAt is null until the settings are first saved.

Example Request
curl -X GET 'https://api.us.pontive.com/v1/authn/account-linking-config'
Example Response
{  "allow_manual_linking": true,  "auto_link_by_email": true,  "object": "string",  "updated_at": "string"}
PATCH
/authn/account-linking-config

Patch the instance's account-linking settings. Omitted fields are left unchanged. auto_link_by_email off refuses every first provider sign-in whose email belongs to an existing account with 409 auth_provider_link_required; allow_manual_linking off refuses a signed-in user starting a link through POST /v1/me/external-identities.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Header Parameters

If-Match?string

The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)

Request Body

Update payload

application/json
  1. body

Update payload

allow_manual_linking?boolean
auto_link_by_email?boolean

Response Body

OK

application/json
  1. response
allow_manual_linking?boolean

AllowManualLinking lets a signed-in user link a provider account to themselves, POST /v1/me/external-identities. Off, starting a link is refused 403 permission_denied. Default true.

auto_link_by_email?boolean

AutoLinkByEmail links a first provider sign-in to the account with the same email when the provider vouches for the address and the account has verified it. Off, every such sign-in is refused 409 auth_provider_link_required. Default true.

object?string
updated_at?string

UpdatedAt is null until the settings are first saved.

Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/authn/account-linking-config' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "allow_manual_linking": true,  "auto_link_by_email": true,  "object": "string",  "updated_at": "string"}