POST /api_v2/authenticate
Authenticate and obtain a token
Pass in your API publishable key and secret keys and obtain a token to use for subsequent API calls. Tokens expire after 24 hours.
Supported Formats
jsonErrors
Code | Description |
---|---|
422 | You have not specified both api_key and secret_key |
401 | Your api_key or secret_key is invalid |
Examples
curl -X POST -v -d "api_key=pk_test_k4ttwB9bYVdmVyXgA7fD&secret_key=sk_test_rgyzxu6y_86FXE5YSMjN" http://api-test.wonolo.com/api_v2/authenticate
{ "token" : "HdgXqxYWd5tTdyabzfzo", "expires_at" : "2015-09-19T04:50:40Z" }
Params
Param name | Description |
---|---|
api_key
required |
Your publishable API key, e.g. Validations:
|
secret_key
required |
Your secret API key, e.g. Validations:
|