Base URL: https://api.terrapinlab.com/v1
Authentication: Bearer token required for all requests
For API access, contact developers@terrapinlab.com
Authentication
All API requests require authentication using a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Endpoints
GET /users/me
Retrieve the current authenticated user's information.
Response:
{
"id": "user_abc123",
"email": "user@example.com",
"name": "John Doe",
"created_at": "2024-01-01T00:00:00Z"
}
POST /data/sync
Sync data to the Cellforge Platform.
Request Body:
{
"type": "location",
"data": {
"latitude": 37.7749,
"longitude": -122.4194
}
}
Rate Limits
API requests are limited to:
- Standard: 1000 requests per hour
- Enterprise: 10,000 requests per hour
Error Codes
The API uses standard HTTP status codes:
200
- Success401
- Unauthorized403
- Forbidden404
- Not Found429
- Rate Limit Exceeded500
- Internal Server Error
Support
For API support and questions: developers@terrapinlab.com