Developers
Docs
  • Introduction
  • Welcome
  • Getting Started
    • Authentication
    • Errors
    • Idempotency
    • Pagination
    • Metadata
    • Versioning
    • Traceability
    • Limitations
  • API
    • API reference
      • Agreements
        • Agreement Object
        • List agreements
        • Get agreement
        • Get template
        • Create agreement
      • ApiKeys
        • ApiKey object
      • Customers
        • Customer object
        • List customers
        • Get customer
      • Mandates
        • Mandate object
      • Payments
        • Cancel
      • Webhooks
      • Merchants
        • Me
    • Specification
  • Webhooks
    • Events
Powered by GitBook
On this page
  1. Getting Started

Authentication

PreviousWelcomeNextErrors

Last updated 2 years ago

Our API use API keys to authenticate requests. You can manage your API keys using the API.

Our secret keys have the prefix sk_. 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 to the API is performed via . Provide your API key as the basic auth username value. You do not need to provide a password.

All API requests must be made over . Calls made over plain HTTP will fail. API requests without authentication will also fail.

curl https://api.debitdirect.io/me \
  -u sk_ddMfjeC39HqLyjWDarjtT1zdp7dc: \
  --header "x-version: 4.0"
HTTP Basic Auth
HTTPS