P
Primitive REST API
Details
- URL
-
https://api.primitive.dev/v1 - Docs
- https://docs.primitive.dev/docs/api
Authentication
Authorization: Bearer <credential> Create an API key in Settings → API Keys. For headless agents, you can also mint one with the unauthenticated POST https://api.primitive.dev/v1/agent/accounts flow described in auth.md. Use the returned prim_... value as a Bearer token.
Authorization: Bearer <credential> Register a public client with OAuth dynamic client registration as described in Authentication & API Keys. Then run the Authorization Code + PKCE flow against `/oauth/authorize` and `/oauth/token`, or let the CLI do it via primitive login. This yields a prim_oat_... access token and a refresh token for the authorized organization.