Confirm account linking
curl --request POST \
--url https://api.agg.market/users/me/link-account/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '
{
"token": "<string>"
}
'{
"provider": "<string>"
}Users
Confirm account linking
Exchanges the short-lived link_confirm_token (handed to the partner app by the link callback redirect) for an actual Account row attached to the current user’s principal. The server matches the bearer’s principalId AND appId to the token’s values before writing — this is the final ownership check. A collision with an existing Account attached to a different Principal returns HTTP 409; the 200 success shape only covers linked and already_linked_same.
POST
/
users
/
me
/
link-account
/
confirm
Confirm account linking
curl --request POST \
--url https://api.agg.market/users/me/link-account/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '
{
"token": "<string>"
}
'{
"provider": "<string>"
}Authorizations
Your application ID. Required for all app-tier and user-tier routes.
JWT access token returned by POST /auth/verify. Required for user-tier routes.
Body
application/json
Minimum string length:
1⌘I