User
API Credentials
Create an API credential
Changed onCreates a credential once and returns the full token on the original response or an identical Idempotency-Key retry within 24 hours. Requires session cookie, X-CSRF-Token, a durable users.sqlite idempotency schema and configured credential/idempotency key material. List/get never expose the token.
post/api/v1/user/api-credentials
Request
- Base URLhttps://openmercantil.es
- AuthAPI key in cookie ob_sess
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-CSRF-Tokenstring required
Fresh token returned by GET /api/v1/user/me for this authenticated session.
Idempotency-Keystring required
Required for account mutations that reveal a secret. Reuse the same key only for an identical payload. The encrypted response can be replayed for 24 hours; a changed payload or an expired key returns 409.
Request body
Response
Credential created, or its encrypted one-time response replayed for the same key and payload
Changes
- info
endpoint added
- info