API Reference
Welcome to the CHRT API reference documentation. Our REST API allows you to access nautical chart data, manage API keys, handle team operations, and more.Base URL
All API requests should be made to:Authentication
The CHRT API uses API keys to authenticate requests. Include your API key in theAuthorization header:
X-CHRT-API-Key header:
Request Format
All POST and PUT requests should include aContent-Type: application/json header and a JSON body.
Response Format
All responses are returned in JSON format with consistent structure:Success Response
Error Response
HTTP Status Codes
The CHRT API uses conventional HTTP response codes:| Code | Status | Description |
|---|---|---|
200 | OK | Request succeeded |
201 | Created | Resource created successfully |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Invalid or missing API key |
403 | Forbidden | Insufficient permissions |
404 | Not Found | Resource not found |
409 | Conflict | Resource already exists |
422 | Unprocessable Entity | Valid request but server cannot process |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server error |
503 | Service Unavailable | Service temporarily unavailable |
Rate Limiting
Rate limits vary by plan and endpoint. Rate limit information is included in response headers:429 status code:
Pagination
List endpoints support pagination using cursor-based pagination:Request Parameters
limit: Number of objects to return (default: 20, max: 100)after: Cursor for pagination (returned in previous response)
Response Format
Example Request
Idempotency
To safely retry requests without performing the same operation twice, include anIdempotency-Key header:
Webhooks
CHRT can send webhook events to notify your application of important events:api_key.created- New API key createdapi_key.regenerated- API key regeneratedapi_key.revoked- API key revokedteam.member.added- New team member addedusage.threshold.reached- Usage threshold reached
X-CHRT-Signature header.
SDKs and Tools
JavaScript SDK
Official SDK for browser and Node.js
Python SDK
Official SDK for Python applications
Postman Collection
Import our complete API collection
OpenAPI Spec
Download the OpenAPI 3.0 specification
Support
Need help with the API? We’re here to help:- 📧 Email: [email protected]
- 💬 Discord: Join our community
- 📖 Documentation: Browse these docs
- 🐛 Issues: Report bugs via email
Changelog
Stay updated with API changes:- API Changelog - Track breaking changes and new features
- Status Page - Monitor API uptime and incidents
