C

Charming HTTP API

REST declared

Details
URL
https://charm.ing
Spec
https://charm.ing/.well-known/openapi.json
Docs
https://charm.ing/docs/build-http.md
Authentication
Charming user token (chrm_user_*) bearer declared
Authorization: Bearer <credential>

Two ways to obtain a chrm_user_* token (see https://charm.ing/docs/technical-reference/authentication.md):

1. Device-pairing (RFC 8628-shaped): POST /api/pair/start returns { device_code, user_code, verification_url, polling_interval, expires_in }. Show the user_code to the human, direct them to verification_url (https://charm.ing/pair), then poll POST /api/pair/poll with { device_code }. On approval the next poll returns { status: "approved", token: "chrm_user_..." } exactly once.

2. Browser-mint: sign in at https://charm.ing/auth/login, then POST /api/token with an optional label; the plaintext is returned once.

Anonymous app creation does not need a token — POST /app with the source and no Authorization header mints a one-app chrm_app_* token (7-day TTL if unclaimed).