Skip to main content

Authentication

Creating API Keys

API requests must be made via HTTPS to the api.dibsy.one/v2 subdomain. Each request must be authenticated with a user’s Bearer key. Test mode secret keys have the prefix sk_test_ and live mode secret keys have the prefix sk_live_.

To create API keys, visit your Dashboard. Under Settings, you will find API keys for both Live mode and Testing. You should use your testing keys when building your application, and switch to live mode keys when you’re ready.

Please note that you must never share your API keys with anyone, and in the scenario that it gets leaked, you can always regenerate a new one, rendering the existing key obsolete.

Authenticating your API calls

All your API calls must be authenticated with your API key in the Authorization header using the Bearer method. For example,

curl -X GET https://api.dibsy.one/v2/payments/pt_aytoixteqo \
-H "Authorization: Bearer sk_live_42069ce69ea8686921f128be69d65ddf9706"