Getting Started
The com.bond API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Base URL
https://com.bond/api/v1
Authentication
Authenticate your API requests by including your secret API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Rate Limits
API rate limits vary by plan:
Plan | Requests/minute | Requests/hour | Burst limit |
---|---|---|---|
Startup | 60 | 1,000 | 10 |
Business | 300 | 10,000 | 50 |
Enterprise | Custom | Custom | Custom |
Rate limit information is included in response headers:
X-RateLimit-Limit
: Request limit per hourX-RateLimit-Remaining
: Requests remainingX-RateLimit-Reset
: Time when limit resets (Unix timestamp)
Domains
Initiate domain verification process
Request Body
Parameter | Type | Description |
---|---|---|
domain * | string | The .com domain to verify (e.g., "example.com") |
method | string | Verification method: "dns" (default), "html", "meta" |
Response
Check domain verification status
Response
List all verified domains
Query Parameters
Parameter | Type | Description |
---|---|---|
limit | integer | Number of results (default: 20, max: 100) |
offset | integer | Pagination offset |
Subdomains
Create a new subdomain
Request Body
Parameter | Type | Description |
---|---|---|
domain_id * | string | ID of the verified domain |
prefix * | string | Subdomain prefix (e.g., "api", "docs") |
type * | string | Type: "static", "proxy", "status", "redirect" |
config | object | Type-specific configuration |
Response
Update subdomain configuration
Delete a subdomain
Analytics
Get usage statistics for your subdomains
Query Parameters
Parameter | Type | Description |
---|---|---|
subdomain_id | string | Filter by specific subdomain |
start_date | string | Start date (ISO 8601) |
end_date | string | End date (ISO 8601) |
granularity | string | "hour", "day" (default), "month" |
Response
Webhooks
Configure webhooks to receive real-time notifications about events in your account.
Available Events
domain.verified
- Domain verification completeddomain.expired
- Domain verification expiredsubdomain.created
- New subdomain createdsubdomain.updated
- Subdomain configuration changedsubdomain.deleted
- Subdomain removedssl.issued
- SSL certificate issuedssl.renewed
- SSL certificate renewed
Webhook Payload
Webhook Security
All webhook requests include a signature in the X-ComBond-Signature
header. Verify this signature using your webhook secret:
const crypto = require('crypto');
function verifyWebhook(payload, signature, secret) {
const expected = crypto
.createHmac('sha256', secret)
.update(payload)
.digest('hex');
return crypto.timingSafeEqual(
Buffer.from(signature),
Buffer.from(expected)
);
}
Error Handling
com.bond uses conventional HTTP response codes to indicate the success or failure of an API request.
Code | Meaning |
---|---|
200 | Success - The request completed successfully |
201 | Created - A new resource was created |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid API key |
403 | Forbidden - Valid key but insufficient permissions |
404 | Not Found - Resource doesn't exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Server Error - Something went wrong on our end |
Error Response Format
SDKs & Libraries
Official SDKs are available for popular languages:
Node.js
npm install @combond/node
Python
pip install combond
Ruby
gem install combond
PHP
composer require combond/php
API Support
Need help with the API?
- Email: [email protected]
- Documentation: com.bond/docs
- Status: com.bond/status
- Enterprise support: 1-833-333-3UCO