Skip to main content

API Keys

Card2Crypto uses API keys to authenticate requests. All requests must include your production API key in the Authorization header.

Key Format

Production API keys follow this format:
Example:

Getting Your API Key

  1. Log in to your Dashboard
  2. Navigate to API Keys
  3. Create your shop (one per account)
  4. Copy your production API key
Your API key is shown only once during shop creation. Store it securely - if you lose it, you’ll need to delete and recreate your shop.

Making Authenticated Requests

Include your API key in the Authorization header using the Bearer scheme:

Security Best Practices

Never expose your API key in client-side JavaScript, mobile apps, or public repositories.Bad:
Good:
Store your API key in environment variables, never hard-code it:
.env
Then access it in your code:
If your API key is exposed:
  1. Delete your shop in the dashboard
  2. Create a new shop to get a fresh API key
  3. Update your integration with the new key
Deleting your shop will invalidate all existing API keys immediately.
Only grant access to your API key to trusted team members. Consider:
  • Using a secrets manager (AWS Secrets Manager, HashiCorp Vault)
  • Implementing role-based access control
  • Auditing who has access to production credentials

Authentication Errors

401 Unauthorized

Returned when the API key is missing, invalid, or malformed.
Common causes:
  • Missing Authorization header
  • Incorrect key format (not c2c_live_...)
  • Using a deleted or expired key
  • Key belongs to inactive seller account

403 Forbidden

Returned when the seller account is inactive or suspended.
Resolution: Contact support at support@card2crypto.cc if your account is unexpectedly inactive.

Testing Authentication

Use this simple test to verify your API key works:

One Shop Per Account

Card2Crypto enforces a one shop per seller account limit. This means:
  • You get one production API key
  • All payments go through this single shop
  • If you need multiple shops, create separate seller accounts
This simplifies management and ensures clean separation of business entities.

Next Steps

Now that you understand authentication, learn how to create payments:

Create a Payment

Learn how to process your first payment