API authentication and tokens
API authentication guide: create and manage API tokens in SendSeven with scoped permissions and secure your integrations with proper authentication practices.
Definition
API Tokens
Before you start
Before you start
Make sure you have the following ready before creating your first API token.
How it works
Open API Tokens in Settings
Navigate to Settings → API Tokens. If you haven't created any tokens yet, you'll see the empty state — "No API tokens yet". Click "+ Create Token" to get started.

Name your token and select scopes
Give your token a descriptive name (e.g. "CRM Token"), then choose the permission scopes it needs. Click "Create Token" when ready.

Copy your token — it's shown only once
Your new token appears immediately after creation. This is the only time it will be displayed — copy it now and store it securely in a password manager or secrets vault.
Save this token now!

Done!
Your token is now active and listed in API Tokens with all its assigned scopes visible. You can revoke it at any time and create additional tokens for different integrations whenever needed. Open API Tokens settings →

Using the API
Include your token as a Bearer token in the Authorization header of every request. Here are examples in multiple languages.
Base URL
https://api.sendseven.com/api/v1List all contacts
curl -X GET "https://api.sendseven.com/api/v1/contacts" \
-H "Authorization: Bearer s7_api_your_token_here" \
-H "Content-Type: application/json"Send a WhatsApp message
curl -X POST "https://api.sendseven.com/api/v1/messages" \
-H "Authorization: Bearer s7_api_your_token_here" \
-H "Content-Type: application/json" \
-d '{
"contact_id": "contact_d4e5f6a7",
"channel_id": "channel_wa_001",
"text": "Hello from SendSeven!",
"message_type": "text"
}'Node.js (fetch)
const response = await fetch('https://api.sendseven.com/api/v1/contacts', {
method: 'GET',
headers: {
'Authorization': 'Bearer s7_api_your_token_here',
'Content-Type': 'application/json'
}
});
const contacts = await response.json();
console.log(contacts);Python (requests)
import requests
response = requests.get(
'https://api.sendseven.com/api/v1/contacts',
headers={
'Authorization': 'Bearer s7_api_your_token_here',
'Content-Type': 'application/json'
}
)
contacts = response.json()
print(contacts)Security best practices
Use environment variables
Never hardcode tokens in your source code. Use environment variables or a secrets manager instead.
# .env file (never commit to git!)
SENDSEVEN_API_TOKEN=s7_api_your_token_hereRotate tokens regularly
Use separate tokens per integration
Request minimum scopes
Revoke unused tokens
What you get
Scoped permissions
Limit each token to specific actions like reading contacts, sending messages, or managing webhooks. Follow the principle of least privilege.
Instant revocation
Revoke any token immediately from the API settings page. Revocation is instant — the token stops working right away for all new requests.
Unlimited tokens
Create as many tokens as you need, each with different scopes and names. Perfect for giving different integrations only the permissions they require.
Bearer authentication
Standard Bearer token authentication via the Authorization header. Works with any HTTP client in any programming language.
Frequently Asked Questions
What are API scopes?
Can I create multiple tokens?
Do API tokens expire?
How do I use the token in API calls?
Can I revoke a token instantly?
What are the available permission scopes?
How are API requests rate limited?
Ready to get started?
Start with 100 test messages. Full access during the trial. No credit card required.