Create a personal access token in Settings → Access tokens. Give it read to list papers, write to add papers, and import to import a DOI or library file. Copy it when it appears: only its hash is stored.
Use the same project ID in the next two requests. The API lives at https://api.distari.com.
curl -H 'Authorization: Bearer pk_YOUR_TOKEN' 'https://api.distari.com/api/v1/papers?project_id=YOUR_PROJECT_ID&page=1&page_size=20'
curl -X POST -H 'Authorization: Bearer pk_YOUR_TOKEN' -H 'Content-Type: application/json' -H 'Idempotency-Key: example-doi-1' -d '{"source":"doi","external_id":"10.1038/nature12373","process":false}' 'https://api.distari.com/api/v1/projects/YOUR_PROJECT_ID/papers/import'Write requests accept an Idempotency-Key so a retry returns the first result. Token requests return RateLimit-Policy and RateLimit; a 429 also includes Retry-After. Errors use {"error":{"code":"...","message":"..."}}. See the public OpenAPI contract for resource fields and pagination.