Endpoints by resource

Every operation, grouped by resource, with the access gate each one enforces.

Endpoint reference

Every route on this page is real: the rows are generated, never typed.

All 136 operations, from the OpenAPI 3.1 contract. The Access column is the gate the code enforces.

  • admin: readwrite key; admin role in the scoped workspace.
  • read: Any authenticated key (readonly or readwrite).
  • session: Browser session only, and an API key gets 401.
  • write: readwrite key; manage/admin role inside a ?workspace= scope. Not every write route: GET /v1/rest/settings/webhook-key applies the key scope only and reads no ?workspace= role.

Forms

MethodPathAccessWhat it does
GET/v1/rest/formsreadList forms Every form with its slug, status, public URL and mode. mode is payment (default) or response.
POST/v1/rest/formswriteCreate a form A blank slug is generated from the title and uniquified within the workspace. An explicit slug must be a usable URL path segment — 1-40 characters of a-z, 0-9 and hyphens, and not a name JomForm reserves for itself (a workspace-claim label such as login/api/docs, or a route served on the same host such as privacy/terms/refund/healthz): a malformed slug is refused with 400 form.slugInvalid and a reserved one with 400 form.slugReserved, before anything is stored. The slug must also be unique among the workspace's live forms: a slug another live form already serves is refused with 409 form.slugInUse (the same code and sentence a slug rename onto it answers). The form is created as a draft; publish it with POST /v1/rest/forms/{id}/publish.
POST/v1/rest/forms/ai-generatewriteDraft a form config from a prompt (AI) This route calls a language model and is charged accordingly, which is why it — and only it among the form routes — is throttled. Response: A draft form config (blocks + theme) to review and then save. Rate limit: 5 per hour per IP, burst 3.
POST/v1/rest/forms/bulkwritePublish, draft or delete many forms at once Up to 500 ids. A payment form with no products is skipped on publish and reported in needs_products rather than being published empty. A draft or delete also drops the cached social card of every form that was serving one (see the status route's edge fields).
GET/v1/rest/forms/trashreadList the forms in the trash Response: The account's trashed forms, each with the number of sales attached to it, so a caller can tell a restorable form from one that can never be destroyed.
GET/v1/rest/forms/{id}readRead one form Includes the current config (blocks) and theme, so you can read, mutate the parts you want and send the whole config back.
PATCH/v1/rest/forms/{id}writeUpdate a form's title, config, theme or slug Partial update: an omitted title, config, theme or slug keeps the stored value, so a body that renames the form does not have to resend its title. An empty title (or slug) also means "leave unchanged" — this route never blanks a form's title. A slug is held to the same rule as create: 1-40 characters of a-z, 0-9 and hyphens and not a name JomForm reserves, so a malformed slug is 400 form.slugInvalid and a reserved one 400 form.slugReserved. A slug another live form already serves is refused with 409 form.slugInUse, and nothing else in the same request is written. A rename leaves a temporary 301 from the old URL.
DELETE/v1/rest/forms/{id}writeDelete a form (soft delete) The form goes to the trash and can be restored; its public page and its share card stop being served. A card the CDN had cached is dropped in the same request and the reply names the outcome in edge.
GET/v1/rest/forms/{id}/fee-overridereadRead a form's fee override
PUT/v1/rest/forms/{id}/fee-overridewriteSet a form's fee override ('' inherit, 'off' switch off)
POST/v1/rest/forms/{id}/publishwritePublish a form The form goes live at its URL. A payment form that cannot take money is refused with 409 and requires_ack=true, because it could never sell anything; send {"acknowledge":true} or ?acknowledge=1 to publish it anyway. The body's code says which shape: no_products (no product block at all) or no_product_selected (a product block exists but names no product — its block_id names the block, and buyers are served "This form is not accepting orders right now").
DELETE/v1/rest/forms/{id}/purgewriteDestroy a trashed form for good Only a form already in the trash can be destroyed. The body must repeat the form's own slug as confirm_slug; a mismatch is refused with 400. A form that has ever been sold is refused with 409 and sales_count, because sales history is never destroyed. The destroyed form's share card and QR PNG are dropped from the CDN in the same request and the reply names the outcome in edge. Response: status=purged and the form id.
POST/v1/rest/forms/{id}/restorewriteRestore a form from the trash Restoring touches no CASCADE. If another form has taken the trashed form's slug in the meantime the restore is refused with 409 — change that form's slug first, then restore. Response: status=restored and the form id.
POST/v1/rest/forms/{id}/statuswriteSet a form's status (draft | private | published) status=private also sets an access password if one is supplied (hashed, never returned). Leaving a publicly served status (published or unlisted) drops the form's cached share card (/og/{slug}.png) and QR PNG (/qr/{slug}.png) at the CDN in the SAME request: the reply then carries edge (purged | not_configured | out_of_zone | failed) and, when nothing was purged, edge_max_age_s, the freshness window that then bounds how long the old copies can still be served. The status change itself never fails because the purge did.

Form settings

MethodPathAccessWhat it does
GET/v1/rest/forms/{id}/confirmationsreadRead a form's confirmations
PUT/v1/rest/forms/{id}/confirmationswriteSet a form's confirmations
GET/v1/rest/forms/{id}/email-settingswriteRead a form's email overrides Refused for a readonly key: this route is reached from the email settings editor and is gated as a write even though it only reads.
PUT/v1/rest/forms/{id}/email-settingswriteSet a form's email overrides
DELETE/v1/rest/forms/{id}/email-settingswriteClear a form's email overrides (inherit the workspace again)
GET/v1/rest/forms/{id}/menureadRead a form's restaurant-menu configuration
PUT/v1/rest/forms/{id}/menuwriteSet a form's restaurant-menu configuration
GET/v1/rest/forms/{id}/notificationswriteList a form's notification rules Gated as a write, like the email-settings read above.
POST/v1/rest/forms/{id}/notificationswriteCreate a notification rule
PUT/v1/rest/forms/{id}/notifications/{nid}writeUpdate a notification rule
DELETE/v1/rest/forms/{id}/notifications/{nid}writeDelete a notification rule
GET/v1/rest/forms/{id}/qr-standreadRender a form's printable QR stand Served for a form the caller owns at ANY status, including a draft: this is the merchant's own print artefact, and a form is usually printed before it goes live. It is what the dashboard's "Print stand" action opens. The public /qr/{slug}/stand route is the buyer-facing one and follows the page's status rule instead — a draft's stand answers 404 there, because the stand prints the form's title. Response: An HTML document: the printable QR stand — the form's title, its public URL encoded as a QR image, and the ?table=N badge when a table was given.
PUT/v1/rest/forms/{id}/restrictionswriteSet a form's open/close window and entry limit
PUT/v1/rest/forms/{id}/settingswriteSet per-form display settings
PUT/v1/rest/forms/{id}/trackingwriteSet per-form analytics/tracking

Submissions

MethodPathAccessWhat it does
GET/v1/rest/forms/{id}/submissionsreadList a response form's submissions Response-mode forms store responses, not sales, so this is how you read them. Supports ?page= and ?limit= (max 100).
GET/v1/rest/forms/{id}/submissions/countreadCount a response form's submissions

Products

MethodPathAccessWhat it does
GET/v1/rest/productsreadList the workspace's products Response: The workspace's live products, each with its variations.
POST/v1/rest/productswriteCreate a product Money is integer sen. price_sen is required and may not be negative; a missing or null price_sen is refused rather than stored as 0. For a subscription set type=subscription and billing_period=month|year. Image URLs must be https://.
POST/v1/rest/products/bulkwriteArchive many products at once Action-based bulk archive (active=false). Up to 500 ids per call.
GET/v1/rest/products/trashreadList the products in the trash Each row also carries deleted_at (RFC3339). can_purge is false when the product has a sale or a subscription, which is exactly what DELETE .../purge would refuse with 409. Response: The workspace's trashed products, each with its sales_count, subscription_count and can_purge, so a caller can tell a restorable product from one that can never be destroyed.
GET/v1/rest/products/{id}readRead one product
PUT/v1/rest/products/{id}writeUpdate a product Partial update: omitted fields keep their current value. variations is replaced wholesale — send the full set, or [] to turn a variable product back into a simple one.
DELETE/v1/rest/products/{id}writeMove a product to the trash This moves the product to the bin — it is not the same as taking it off sale. To take a product off sale and leave it in the catalogue, PUT {"active":false} instead; a trashed product is invisible to every other read until it is restored.
DELETE/v1/rest/products/{id}/purgewriteDestroy a trashed product for good Only a product already in the trash can be destroyed; a live product is a 404. The body must repeat the product's own name as confirm_name; a mismatch is refused with 400. A product that has ever been sold is refused with 409 and sales_count (sales history is never destroyed), and one a subscription still points at is refused with 409 and subscription_count. Response: status=purged, the product id and its name.
POST/v1/rest/products/{id}/restorewriteRestore a product from the trash Restoring touches no CASCADE and destroys nothing. Unlike a form restore there is no slug to collide with — products have no unique name — so this only fails when the product is not in the trash (404). Response: status=restored and the product id.

Sales

MethodPathAccessWhat it does
GET/v1/rest/email-deliveriesreadList email delivery events
GET/v1/rest/salesreadList sales and responses Without a form filter this is the whole record set: sales AND response-mode submissions, merged newest first. Filters: ?form_id= ?status= ?from= ?to= ?q= ?page= ?limit=. Omit ?page= for the legacy plain-array shape.
POST/v1/rest/sales/bulk-capturewriteCapture many skip-capture authorisations
GET/v1/rest/sales/export.csvreadExport sales/responses as CSV Response: A text/csv body with the same rows and filters as the list.
GET/v1/rest/sales/{ref}readRead one sale, including its available lifecycle events Returns the full sale row plus available_events: every event this sale's current state accepts, each with a stable event name, the dashboard label key, and — when a guard refuses it — enabled=false with the English reason. The dashboard builds its action buttons from this list; an agent can ask before it proposes an action.
POST/v1/rest/sales/{ref}/capturewriteCapture a skip-capture authorisation Omit amount_sen to capture the full authorisation; send it to capture part of it.
POST/v1/rest/sales/{ref}/confirmwriteConfirm a sale (for example a bank transfer)
GET/v1/rest/sales/{ref}/email-statusreadRead a sale's receipt email timeline
POST/v1/rest/sales/{ref}/refundwriteRefund a paid sale, in full or in part A partial refund keeps the sale paid with refunded_sen set and outstanding_sen still refundable; only reaching the total marks it refunded. An amount that would over-refund is refused.
POST/v1/rest/sales/{ref}/releasewriteRelease (void) a skip-capture authorisation

Subscriptions

MethodPathAccessWhat it does
GET/v1/rest/subscriptionsreadList subscriptions
POST/v1/rest/subscriptions/{id}/cancelwriteCancel a subscription Cancelling does not revoke the customer's card token; the subscription can be revived later.
POST/v1/rest/subscriptions/{id}/retrywriteRetry a past-due subscription now
POST/v1/rest/subscriptions/{id}/update-cardwriteRe-tokenise a subscription's card

Payments (CHIP)

MethodPathAccessWhat it does
GET/v1/rest/forms/{id}/chip-feedsreadRead a form's CHIP feeds
PUT/v1/rest/forms/{id}/chip-feedsadminSet a form's CHIP feeds Admin only: these feeds carry payment credentials.
PUT/v1/rest/forms/{id}/chip-overrideadminOverride a form's CHIP credentials
DELETE/v1/rest/forms/{id}/chip-overrideadminClear a form's CHIP credential override
GET/v1/rest/settings/chipreadRead whether CHIP is configured
PUT/v1/rest/settings/chipadminSet the workspace's CHIP credentials
DELETE/v1/rest/settings/chipadminClear the workspace's CHIP credentials
POST/v1/rest/settings/chip/testadminTest CHIP credentials without saving Runs the same live CHIP credential check the save path runs and stores nothing. An empty body tests the stored Secret Key; a secret_key field tests a key the merchant has just pasted. Admin only.

Webhooks

MethodPathAccessWhat it does
GET/v1/rest/webhooksreadList outbound webhooks
POST/v1/rest/webhookswriteCreate an outbound webhook
PUT/v1/rest/webhooks/{id}writeUpdate an outbound webhook
DELETE/v1/rest/webhooks/{id}writeDelete an outbound webhook
GET/v1/rest/webhooks/{id}/deliveriesreadList a webhook's recent deliveries
POST/v1/rest/webhooks/{id}/deliveries/{deliveryId}/retrywriteRetry a failed delivery
POST/v1/rest/webhooks/{id}/retries/{retryId}/retrywriteRetry a dead-lettered delivery

Domains

MethodPathAccessWhat it does
GET/v1/rest/domainsreadList custom domains
POST/v1/rest/domainswriteAdd a custom domain
DELETE/v1/rest/domains/{id}writeDelete a custom domain
POST/v1/rest/domains/{id}/auto-cnamewriteCreate the CNAME through the linked Cloudflare account
POST/v1/rest/domains/{id}/custom-certwriteUpload a custom TLS certificate
POST/v1/rest/domains/{id}/tls-emailwriteSet the ACME contact email for a domain
POST/v1/rest/domains/{id}/tls-modewriteSet a domain's TLS mode
POST/v1/rest/domains/{id}/verifywriteVerify a custom domain's DNS

Media

MethodPathAccessWhat it does
GET/v1/rest/mediareadList uploaded media Newest first and paginated (?page/?limit; the limit caps at 100), with optional ?form=<id> and ?source=merchant|customer filters. Pass ?url=<a media URL this workspace owns> instead of ?page to ask for that ONE row: the URL is resolved to its object key, so a row older than the newest 100 rows — or a URL whose advertised host has changed since it was stored — is still found. A URL this workspace does not own answers an EMPTY items list with 200, not 404: 'not in this library' is an ordinary answer, not a failed request.
GET/v1/rest/media/trashreadList the media in the trash object_present reports whether the bytes are still in the store. A row can be in the bin while the object is already gone (removed by an operator or a bucket lifecycle rule), which is why a restore checks rather than assumes. Response: The workspace's trashed media, each with deleted_at (RFC3339) and object_present.
DELETE/v1/rest/media/{id}writeMove a media item to the trash This marks the row trashed. The object itself is NOT removed from storage and the bytes keep counting against the workspace's 1GB quota: the bin holds real storage, so it is not a free tier. Destroy the object for good with DELETE /v1/rest/media/{id}/purge, which is also where the quota is released.
DELETE/v1/rest/media/{id}/purgewriteDestroy a trashed media item for good Only a media row already in the trash can be destroyed; a live row is a 404. The object and its derived variants (sized images, PDF preview) are removed from the store and the bytes are released from the 1GB quota — this is the only path that releases them. Response: status=purged, the media id and the object key that was removed.
POST/v1/rest/media/{id}/restorewriteRestore a media item from the trash Clears deleted_at, so the same URL works again — the bytes were never removed. If the object is no longer in the store the restore is refused with 409 and nothing is changed, because restoring would put a broken URL back in the library. Quota is untouched: the bytes were never released on soft delete. Response: status=restored, the media id and the public URL that serves it (a code asset's URL is on the workspace's own host; an image's is the media host).
POST/v1/rest/uploads/assetwriteUpload a code asset (multipart: css/js/html/svg/woff2) Merchant-only. A code asset is scanned before it is served. An svg must be a well-formed XML document: a body with text before the root element (for example a /* */ banner) is refused with 400 upload.svgInvalid, because a browser parses image/svg+xml as XML and would show a parsererror instead of the image. Response: The stored asset, which stays unserved until its scan passes. Rate limit: 2 per second per IP, burst 6.
POST/v1/rest/uploads/avatarwriteUpload a profile avatar (multipart) Response: The stored avatar with its public https URL. Rate limit: 2 per second per IP, burst 6.
POST/v1/rest/uploads/imagewriteUpload an image (multipart) multipart/form-data with the file in file. Send the bytes, not JSON. An svg must be a well-formed XML document: a body with text before the root element (for example a /* */ banner) is refused with 400 upload.svgInvalid, because a browser parses image/svg+xml as XML and would show a parsererror instead of the image. Response: The stored media item with its public https URL. Rate limit: 2 per second per IP, burst 6.

Templates

MethodPathAccessWhat it does
GET/v1/rest/templatesreadList the workspace's own templates
POST/v1/rest/templateswriteCreate a template
GET/v1/rest/templates/{id}readRead a template
PUT/v1/rest/templates/{id}writeUpdate a template
DELETE/v1/rest/templates/{id}writeDelete a template
POST/v1/rest/templates/{id}/usewriteClone a template into a new draft form

Analytics

MethodPathAccessWhat it does
GET/v1/rest/analytics/formsreadPer-form entry counts and money Each row counts exactly one table — a response form's responses, or a payment form's sales — so the two are never summed.
GET/v1/rest/analytics/productsreadPer-product sales totals
GET/v1/rest/eventsreadList the account's audit/behaviour events
GET/v1/rest/events/breakdownreadBreak events down by name
GET/v1/rest/events/countreadCount events
GET/v1/rest/events/streamreadStream this workspace's events (SSE) Server-sent events. The stream is account-scoped by the authenticating credential, so it can never carry another tenant's events. Response: A text/event-stream of sale.paid, sale.failed, response.submitted and subscription.charged events for the authenticated account.

Spam review

MethodPathAccessWhat it does
GET/v1/rest/spam/salesreadList spam-flagged sales
POST/v1/rest/spam/sales/{ref}/unspamwriteUn-flag a sale (false positive)
GET/v1/rest/spam/submissionsreadList spam-flagged submissions
POST/v1/rest/spam/submissions/{id}/unspamwriteUn-flag a submission (false positive)

Settings

MethodPathAccessWhat it does
GET/v1/rest/currency/ratesreadRead cached exchange rates (BNM)
GET/v1/rest/settings/custom-domainreadRead the workspace's custom domain
PUT/v1/rest/settings/custom-domainwriteSet the workspace's custom domain
DELETE/v1/rest/settings/custom-domainwriteClear the workspace's custom domain
GET/v1/rest/settings/einvoicereadRead e-Invoice (LHDN) settings
PUT/v1/rest/settings/einvoicewriteSet e-Invoice (LHDN) settings
GET/v1/rest/settings/payment-feesreadRead the per-method platform fee + acknowledgement
PUT/v1/rest/settings/payment-feeswriteSet the per-method platform fee (requires the disclosure acknowledgement)
GET/v1/rest/settings/trackingreadRead workspace tracking/analytics
PUT/v1/rest/settings/trackingwriteSet workspace tracking/analytics
GET/v1/rest/settings/webhook-keywriteRead the webhook signing key Refused for a readonly key: the account's Ed25519 keypair is generated on first use, so the FIRST call on a workspace writes and this read is gated as a write. Once a keypair exists the same readonly key is served — the gate is state-dependent, and Access states the strongest one the handler applies. The key scope is the only gate here: the handler does not read a ?workspace= role.

API keys

MethodPathAccessWhat it does
GET/v1/rest/keysreadList API keys (never the secret)
POST/v1/rest/keyswriteCreate an API key Returns the raw key exactly once — store it then. Scopes default to ["readonly"]; the supported values are readonly and readwrite. The same key authenticates MCP.
DELETE/v1/rest/keys/{id}writeRevoke an API key

Account

MethodPathAccessWhat it does
GET/v1/rest/dashboard-bundlereadOne call for the whole dashboard payload Response: An object with currency, me, workspaces, chip_status, keys, domains, webhooks, social, einvoice, products, summary, sales, form_analytics and product_analytics. currency is the active workspace's currency — the money every price on the dashboard is labelled in.
GET/v1/rest/summaryreadWorkspace totals (sales, revenue, counts)

Profile

MethodPathAccessWhat it does
PUT/v1/rest/profile/avatarsessionSet the signed-in user's avatar URL The URL must point at JomForm-hosted media; arbitrary external URLs are refused.

Feedback

MethodPathAccessWhat it does
GET/v1/rest/feedbacksessionList your feedback threads
POST/v1/rest/feedbacksessionFile a feedback thread
GET/v1/rest/feedback/{id}sessionRead one of your feedback threads
POST/v1/rest/feedback/{id}/messagessessionReply on one of your feedback threads

In-app assistant

MethodPathAccessWhat it does
GET/v1/rest/chatsessionReport whether the in-app assistant is available
POST/v1/rest/chatsessionAsk the in-app assistant one message Session-only, and read-only by construction: the assistant's tool calls run under a readonly identity, so nothing typed into the box can write. The limit is enforced in the handler, keyed on the user rather than the IP. Response: The assistant's reply, the tool steps it took, and whether it filed feedback. Rate limit: 60 messages per hour per user, burst 10.
POST/v1/rest/chat/cancelsessionDiscard a write the assistant proposed Same request shape as confirm (token + args_hash), and it shares confirm's bucket. Withdrawing a proposal executes nothing. Response: status and the tool whose proposal was discarded. Rate limit: 30 confirmations per hour per user, burst 5.
POST/v1/rest/chat/confirmsessionExecute a write the assistant proposed The only place a proposed write is executed. The body carries the opaque single-use token the browser holds and the args_hash the card showed; there is no confirm flag and nothing the caller can set to make the write happen, because the token IS the authorisation. A model cannot reach this endpoint — it is never given the token. Response: status, the tool that ran, and its result. Rate limit: 30 confirmations per hour per user, burst 5.
GET/v1/rest/chat/sessionssessionList your saved conversations in this workspace Archived conversations are included only with ?archived=1. A conversation belongs to one person in one workspace, so switching workspace shows a different list. Response: The sidebar: each conversation's id, title, timestamps, archived flag and message count, most recently used first.
POST/v1/rest/chat/sessionssessionStart a new conversation Capped at 200 conversations per person per workspace; the refusal names the way out (delete old ones). The row is created eagerly so the sidebar shows the effect of the button. Response: The new conversation; its title is empty until the first message names it.
GET/v1/rest/chat/sessions/{id}sessionRead one saved conversation and its messages 404 for an unknown id AND for another person's id. A proposal's confirmation token is never stored, so a restored conversation offers no button that could execute anything. Response: The conversation and its turns, oldest first, capped to the assistant's own window; each answer carries the tool trail it left.
PATCH/v1/rest/chat/sessions/{id}sessionRename or archive one of your conversations Send title and/or archived; a body with neither is a 400. An empty title clears the name, and the list falls back to the first message. Archiving is reversible. Response: The updated conversation.
DELETE/v1/rest/chat/sessions/{id}sessionDelete one of your conversations A real delete: the messages are removed with the conversation. Archiving is the reversible action. Response: status=deleted.

Shipping

MethodPathAccessWhat it does
GET/v1/rest/shippingreadRead the workspace's shipping zone sets and rates The managed rate source a form's shipping block uses when its source is "zones": zone sets, each zone's match rules (states / districts / postcode range) and its rate rows (price in integer sen, an optional weight band in grams and an optional free-shipping threshold). Scoped to the account the request resolved to (?workspace= resolves that workspace's own account).
PUT/v1/rest/shippingwriteReplace the workspace's shipping zone sets and rates One transaction: a set sent with its id keeps it (so every form pointing at it keeps resolving), a new set is inserted, and a set the payload OMITS is deleted — refused with 409 when a form still points at that set. Every zone needs at least one rate and every non-fallback zone needs a match rule; a configuration that could not resolve is refused with 400 rather than saved and discovered by a buyer.
GET/v1/rest/shipping/couriersreadRead the workspace's courier connections Every courier provider this deployment knows (lalamove, easyparcel) with: whether the SERVER holds usable credentials for it (never the value — only the source), whether THIS workspace has connected it, the pickup address a parcel ships from, the connection's environment (sandbox/live, so a simulated rate is visible as simulated), and what is still missing (credentials / connect / grant / origin) before a real quote can happen. A provider whose production keys do not exist yet is listed as not configured rather than hidden.
POST/v1/rest/shipping/couriers/{provider}/connectwriteConnect a courier provider for the workspace Lalamove authenticates server to server, so connecting means naming the PICKUP point (lat/lng) it will be quoted from and it is immediately ready. EasyParcel is OAuth 2.0 and its consent belongs to the MERCHANT: this returns an authorize URL (with a single-use, 30-minute state) for the account owner to open on any device. No password is ever accepted here. A refusal names its remedy: missing server credentials, a missing pickup point, or an unregistered redirect_uri.
POST/v1/rest/shipping/couriers/{provider}/disconnectwriteDisconnect a courier provider, dropping its stored grant Marks the connection disconnected and deletes the sealed OAuth grant, so a revoked authorization can never be quoted with. The pickup address is KEPT: it is the merchant's configuration and reconnecting must not make them retype it.
Note: Each table carries the route, its access gate and its summary. The published contract carries every request and response schema.

Worked examples

Each example is executed against a live server, so the status and the body fragment below are the ones the api suite asserts.

1. Authenticate

curl -sS 'https://api.jomform.com/v1/rest/keys' \
  -H "Authorization: Bearer $JOMFORM_API_KEY"
GET /v1/rest/keys. Expect HTTP 200, with "scopes" in the body.

Every /v1/rest route takes the key in an Authorization header. There is no query-string key and no cookie path for a script.

This lists your own keys — it never returns a secret. The raw key is shown once, when you create it.

2. What a missing credential gets

curl -sS 'https://api.jomform.com/v1/rest/keys'
GET /v1/rest/keys. Expect HTTP 401, with "error" in the body.

An unauthenticated call is refused with 401 before any account is resolved, so a misconfigured client fails loudly instead of reading someone else's data.

The body is {"error":"authentication required"} — the API's own wording, not a fixed error catalogue.

3. Create a form

curl -sS -X POST 'https://api.jomform.com/v1/rest/forms' \
  -H "Authorization: Bearer $JOMFORM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Docs example form"}'
POST /v1/rest/forms. Expect HTTP 201, with "slug" in the body.

A new form is created as a draft. Nothing is live until you publish it.

Leave slug out and it is generated from the title and made unique in the workspace. The response carries mode (payment by default) and the draft's url.

4. Publish it

curl -sS -X POST 'https://api.jomform.com/v1/rest/forms/{{form_id}}/publish' \
  -H "Authorization: Bearer $JOMFORM_API_KEY"
POST /v1/rest/forms/{{form_id}}/publish. Expect HTTP 200, with "status" in the body.

Publishing is what makes the form live at its URL.

A payment form with no products is refused here with 409 and requires_ack: true, because it could never take money; send {"acknowledge":true} to publish it anyway.

5. Read your forms back

curl -sS 'https://api.jomform.com/v1/rest/forms' \
  -H "Authorization: Bearer $JOMFORM_API_KEY"
GET /v1/rest/forms. Expect HTTP 200, with "mode" in the body.

The list carries everything needed to pick a form id: slug, title, status, mode and public URL.

mode is payment or response, so a response form is never mistaken for an order form.

6. Read the sales this form produced

curl -sS 'https://api.jomform.com/v1/rest/sales?page=1&limit=15' \
  -H "Authorization: Bearer $JOMFORM_API_KEY"
GET /v1/rest/sales?page=1&limit=15. Expect HTTP 200, with "items" in the body.

The last step of the end-to-end flow: what the form actually recorded.

Without page this route answers with a plain array instead — the same rows, the older shape the dashboard reads.