01 / Description ยท v1
Contractor Leads API
Search approved service requests by category and ZIP, then claim a lead to securely receive its contact details.
Overview
Add messaging to a website, mobile app, backend process, or internal tool. Submit a destination and message, receive a delivery response, and track token usage from one place.
Scroll horizontally to test it
02 / Test
Send a test message.
Try the input flow before buying tokens. This sandbox previews the request experience and does not contact a real recipient yet.
03 / Tokens
Buy tokens. Use any key.
Choose a token package once. After checkout, the balance is added to your account and can be used by every API key you create. No subscription is required.
04 / Documentation
Contractor Leads API docs.
Overview
The Messaging API lets an application send transactional messages through one server-side endpoint. Authenticate with a Bearer key, provide the recipient, channel, and message, then store the returned message ID to track delivery.
Use cases
Send verification codes, appointment reminders, order updates, account alerts, support replies, and other messages triggered by a user or product event.
Why this matters
One consistent request format reduces integration work. Shared credits and delivery responses make messaging costs and outcomes easier to understand across products.
{
"to": "+12025550123",
"channel": "sms",
"message": "Your verification code is 4821"
}
// 200 response
{
"id": "msg_8f31c2",
"status": "queued",
"tokens_used": 1
}import requests
response = requests.post(
"https://api.codecobra.com/v1/messages",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"to": "+12025550123",
"channel": "sms",
"message": "Your verification code is 4821",
},
)
print(response.json())