Get auth token

The Marco API uses an authentication token (auth_token) for securing all API requests. You must include this token in the Authorization header of every request.

Obtaining an Authentication Token

To generate an auth_token, send a POST request to:

https://api.marcopayroll.com/api:eZ5RDmx2/api/auth-token

Body

Name
Type
Required
Description

email

string

Platform Email of the User

password

string

User's Account Password

vendor_id

number

Unique id of Vendor (Contact Marco for more information)

Parameter Example

{
  "email": "",
  "password":"",
  "vendor_id":"162"
}

Response

{
  "auth_token": "$AUTH_TOKEN"
}

Token Expiry

  • The auth_token is valid for 3 days.

  • Once expired, you must request a new token by calling the same endpoint again.

Last updated