API Overview
The Treeship API is a REST API for creating and verifying cryptographic attestations.Base URL
Authentication
Get an API key via email verification, then include it as a Bearer token:| Endpoint | Authentication |
|---|---|
POST /v1/keys/request | Public |
POST /v1/keys/verify | Public |
GET /v1/keys/info | Required |
DELETE /v1/keys | Required |
POST /v1/attest | Required |
GET /v1/verify/:id | Public |
GET /v1/agent/:slug | Public |
GET /v1/pubkey | Public |
Response Format
All responses are JSON:Errors
Errors return appropriate HTTP status codes:| Status | Meaning |
|---|---|
| 400 | Bad request (invalid input) |
| 401 | Unauthorized (missing/invalid API key) |
| 404 | Not found |
| 422 | Validation error |
| 500 | Server error |
Rate Limits
- Attestations: 100/minute per API key
- Verification: 1000/minute per IP
- Agent feed: 100/minute per IP
SDKs
- Python:
pip install treeship-sdk - CLI:
npm install -g treeship-cli