Twofold v2.7

Search pages, sections and endpoints.

    Open the console

    API reference

    Users

    The linked user behind an access token.

    Environment

    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

    externalUserIdstringrequired

    The 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.

    twofoldUserIdstring

    Twofold's stable id for the user.

    externalUserIdstring

    The partner's id for this user, bound at link time.

    emailstring | null

    The user's email address in Twofold.

    namestring | null

    The user's full name; null when they haven't filled in their profile.

    linkStatusenum

    Always "active": a revoked link's token fails auth with link_revoked before reaching this endpoint.

    activerevoked

    accessLevelenum

    FULL_ACCESS consumes a partner seat and unlocks the full app; READ_ONLY users are prompted to activate via the partner.

    FULL_ACCESSREAD_ONLY

    linkedAtstring

    When the current link was created, ISO 8601 UTC.

    Example request

    bash
    curl https://partner-api.trytwofold.com/v2/users/provider-1042/me \
      -H "Authorization: Bearer twofold_access_prod_…"
    bash
    curl https://partner-api.staging.trytwofold.com/v2/users/provider-1042/me \
      -H "Authorization: Bearer twofold_access_staging_…"

    Example response

    json
    {
      "twofoldUserId": "user_ab12Cd34Ef56",
      "externalUserId": "provider-1042",
      "email": null,
      "name": null,
      "linkStatus": "active",
      "accessLevel": "FULL_ACCESS",
      "linkedAt": "2026-04-01T17:32:04.000Z"
    }
    json
    {
      "twofoldUserId": "user_ab12Cd34Ef56",
      "externalUserId": "provider-1042",
      "email": null,
      "name": null,
      "linkStatus": "active",
      "accessLevel": "FULL_ACCESS",
      "linkedAt": "2026-04-01T17:32:04.000Z"
    }

    Errors

    400

    The request is invalid. param names the offending parameter when there is one. Possible error.code values: invalid_parameters.

    401

    Authentication 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.

    403

    The token is valid but may not access this resource. Possible error.code values: link_revoked, partner_not_activated, external_user_id_mismatch.

    429

    Rate limit exceeded: 100 requests/second (burst 200) per linked user. Wait Retry-After seconds and retry. Possible error.code values: rate_limit_exceeded.

    500

    Something 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.