Authentication
In order to use the AgencyMVP API, you need to have an API Token. This API Token will be given to you. If you don't have it, please send an email to admin@agencymvp.com to be given one. This token is considered a secret and should be treated the same way you do for a password.
The sandbox and production API tokens are different and you need one for each environment.
Requests
All requests for any resource will need to include an Authorization
header with the
correct token.
Given this sample header:
Authorization: Bearer XXXXXX
If your API Token is mytoken
, then replace XXXXXX
within it's place:
Authorization: Bearer mytoken
Authentication Test
To test the authentication, run the command below in your terminal. Make sure to replace the Bearer token with the one provided for your account.
curl https://api.agencymvp.com/v1/authtest \
-H "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
You will then get this response:
{"message":"Test successful!"}