Authentication

Secure your API requests with authentication

API Authentication

All requests to the Noxipay API require authentication using your API key. This ensures that only authorized applications can access your account data and process payments.

API Keys

You can find your API keys in your Noxipay dashboard under Settings > API Keys. We provide both test and live keys:

Test Keys

Start with pk_test_ or sk_test_

Use for development and testing

Live Keys

Start with pk_live_ or sk_live_

Use for production applications

Making Authenticated Requests

Include your API key in the Authorization header of your requests:

HTTP Header
Authorization: Bearer pk_live_your_api_key_here

Example Request

cURL Example
curl -X GET https://api.noxipay.com/v1/payments \ -H "Authorization: Bearer pk_live_your_api_key_here" \ -H "Content-Type: application/json"

SDK Authentication

When using our SDKs, you can set your API key once:

PHP

<?php $noxipay = new Noxipay('pk_live_your_api_key_here');

JavaScript

const noxipay = require('noxipay'); const client = new noxipay('pk_live_your_api_key_here');

Security Best Practices

🔒 Keep Keys Secure

Never expose your secret keys in client-side code or public repositories

🔄 Rotate Keys Regularly

Generate new API keys periodically and revoke old ones

🌐 Use HTTPS

Always make requests over HTTPS to protect your data in transit