Documentation/Authentication
Authentication
Authenticate your API requests using your Project API Key.
API Keys
PayArk uses API keys to authenticate requests. You can view and manage your API keys in the Project Dashboard.
Keep your keys secret
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Authentication Header
Authentication to the API is performed via HTTP Basic Auth. Provide your API key as the basic auth username value. You do not need to provide a password.
Alternatively, you can authenticate via the Authorization header with a Bearer token or x-api-key header.
Request Example
curl https://api.payark.dev/v1/checkout \
-u sk_test_4eC39HqLyjWDarjtT1zdp7dc:
Header Format
| Header | Value |
|---|---|
| Authorization | Bearer sk_test_... |
| x-api-key | sk_test_... |