API reference
Users
The linked user behind an access token.
Get the linked user
get/v2/users/{externalUserId}/me
Authenticate with a user access token — the externalUserId in the path must be the linked user the token belongs to.
Path parameters
externalUserIdstringrequiredThe partner's id for the linked user. Must match the user the access token belongs to.
Response200
The linked user behind the access token, and the state of their link.
twofoldUserIdstringTwofold's stable id for the user.
externalUserIdstringThe partner's id for this user, bound at link time.
emailstring | nullThe user's email address in Twofold.
namestring | nullThe user's full name; null when they haven't filled in their profile.
linkStatusenumAlways "active": a revoked link's token fails auth with link_revoked before reaching this endpoint.
activerevoked
accessLevelenumFULL_ACCESS consumes a partner seat and unlocks the full app; READ_ONLY users are prompted to activate via the partner.
FULL_ACCESSREAD_ONLY
linkedAtstringWhen the current link was created, ISO 8601 UTC.
Example request
curl https://partner-api.trytwofold.com/v2/users/provider-1042/me \
-H "Authorization: Bearer twofold_access_prod_…"curl https://partner-api.staging.trytwofold.com/v2/users/provider-1042/me \
-H "Authorization: Bearer twofold_access_staging_…"Example response
{
"twofoldUserId": "user_ab12Cd34Ef56",
"externalUserId": "provider-1042",
"email": null,
"name": null,
"linkStatus": "active",
"accessLevel": "FULL_ACCESS",
"linkedAt": "2026-04-01T17:32:04.000Z"
}{
"twofoldUserId": "user_ab12Cd34Ef56",
"externalUserId": "provider-1042",
"email": null,
"name": null,
"linkStatus": "active",
"accessLevel": "FULL_ACCESS",
"linkedAt": "2026-04-01T17:32:04.000Z"
}Errors
400The request is invalid. param names the offending parameter when there is one. Possible error.code values: invalid_parameters.
401Authentication failed — the access token is missing, invalid or expired. Refresh and retry. Possible error.code values: missing_access_token, invalid_access_token, access_token_expired, wrong_environment_access_token, partner_key_on_user_endpoint.
403The token is valid but may not access this resource. Possible error.code values: link_revoked, partner_not_activated, external_user_id_mismatch.
429Rate limit exceeded: 100 requests/second (burst 200) per linked user. Wait Retry-After seconds and retry. Possible error.code values: rate_limit_exceeded.
500Something failed on Twofold's side, or the partner API is temporarily paused (temporarily_unavailable). Safe to retry. Possible error.code values: internal_error, temporarily_unavailable.