Requests to the Payant API must be authenticated by including your private key in all your request headers.

Your authorization header should be like:

Authorization: Bearer cd525b1d647942a21c51d03f8c07e2fd43b4e955ec13a8c54c8a5f2d

API requests made without an authorization code will fail 401: Unauthorized

Heads up!

Your public key is designed to only authorize accepting payments and can not be used to edit your account settings. Your private key is meant to be secret and should not be included in any client facing code and neither should it be commited to git.