API
Follow these quick steps to setup your environment for working with the Cursion API
API structure
Tips
All of the API endpoints follow the same basic structure.
| Path | Allowed methods | Usage |
|---|---|---|
/<object> | POST | create object |
/<object>s/delete | POST | delete many objects |
/<object>/<object:id> | GET, DELETE | retrieve or delete single object |
/<object>?limit=10&offset=0 | GET | retrieve paginated object list |
/<object>/<object:id>/lean | GET | retrieve abbreviated object |
API Setup
- Set an env variable,
CURSION_API_BASE_URLtohttps://api.cursion.dev/v1/ops - Retrieve your API token located in your account page
- Set another env variable,
CURSION_API_TOKENtoToken <your_super_secret_api_token> - Be sure to export / import these variables into your working directory when using
