Users API
Documentation on how to use the users API via OAuth2 in SePay.
Introduction
SePay’s users API allows you to access information about the current user and their company. You can retrieve the user’s personal information and detailed information about the company they belong to.
To use this API, your Access Token must include the
profilescope (for user information) or thecompanyscope (for company information).
Get user information
GET
/api/v1/meAuthorization: Bearer {YOUR_ACCESS_TOKEN}
This endpoint returns information about the currently authenticated user via OAuth2.
Required permissions
- Scope:
profile
- Scope:
Error codes
- Below are possible error codes when using the users API:
HTTP Code Error Code Description 401 unauthorizedToken is invalid or expired403 forbiddenYou do not have permission to access this resource