Skip to content

API submissions #39

Answered by tobimori
tobimori asked this question in General
Discussion options

You must be logged in to vote

This is a brief overview of what to do if you are interested in implementing it yourself.

If you set tobimori.dreamform.mode in your config to api, any POST request will send back a JSON response.

The API schema looks like this:

type ApiResponse = {
  session: string // This is a session key, used for "sessionless" multi-step requests
  success: boolean // Whether the request & validation has been successful so far
  partial: boolean // Whether all expected fields have been filled in the submission
  spam: boolean // Whether the submission was marked as spam or not
  step: number // The current step of the submission
  redirect: string | null // If the redirect action is used, this contai…

Replies: 1 comment

Comment options

tobimori
Apr 11, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by tobimori
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant