Payezydevelopers
Sandbox

API reference / Identity and access

Get the caller and their organizations

GET/v1/me

Returns the signed-in person (or the key's organization) and every organization membership with its role and permissions. Use the org_id values it returns as {orgId} in every other call.

When to use it

First call of any integration, and whenever you need to check what a credential can do.

Before you call it

  • CredentialAny signed-in member or API key of the organization.

Response 200

Current user, memberships, and session

FieldWhat it does
userUserrequiredNo description in the spec yet.
user.idstring (uuid)requiredNo description in the spec yet.
user.emailstringrequiredNo description in the spec yet.
user.first_namestringrequiredNo description in the spec yet.
user.last_namestringrequiredNo description in the spec yet.
membershipsMembershipSummary[]requiredNo description in the spec yet.
memberships[].org_idstring (uuid)requiredNo description in the spec yet.
memberships[].org_namestringrequiredNo description in the spec yet.
memberships[].org_typeenumrequiredNo description in the spec yet.

One of individual business platform

memberships[].org_statusenumrequiredNo description in the spec yet.

One of kyc_required kyc_pending active restricted suspended closed

memberships[].role_keystringrequiredNo description in the spec yet.
memberships[].role_namestringrequiredNo description in the spec yet.
memberships[].permissionsstring[]requiredNo description in the spec yet.
memberships[].platform_namestringThe platform partner this organization banks through, if any
sessionSessionInforequiredNo description in the spec yet.
session.aalenumrequiredNo description in the spec yet.

One of aal1 aal2

session.authenticated_atstring (date-time)requiredNo description in the spec yet.
session.impersonationImpersonationInfoNo description in the spec yet.
session.impersonation.session_idstring (uuid)requiredNo description in the spec yet.
session.impersonation.kindenumrequiredPayezy staff, or a member of the platform this customer banks through

One of staff platform

session.impersonation.staff_idstring (uuid)No description in the spec yet.
session.impersonation.scopeenumrequiredNo description in the spec yet.

One of read write

session.impersonation.platform_idstring (uuid)No description in the spec yet.
session.impersonation.platform_namestringNo description in the spec yet.
session.impersonation.viewer_namestringThe platform team member who is viewing
session.impersonation.viewer_emailstringNo description in the spec yet.
pending_claimsPendingOwnerClaim[]Owner claims waiting for this email on accounts that still have no members. Set only when the caller has no organization yet. Omitted otherwise. Declining a claim does not remove it.
pending_claims[].invitation_idstring (uuid)requiredNo description in the spec yet.
pending_claims[].org_idstring (uuid)requiredNo description in the spec yet.
pending_claims[].org_namestringrequiredNo description in the spec yet.
pending_claims[].org_typeenumrequiredNo description in the spec yet.

One of individual business platform

pending_claims[].platform_namestringThe platform that opened this account, when one did
pending_claims[].expires_atstring (date-time)requiredNo description in the spec yet.

Usually next

Used in guided journeys