Form links API
Send a form to a person's phone as a link, and see how far it got.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/forms/{form_id}/links
See how far a form's links got
The newest link of every instance of the form, with how many questions are answered, and counts by state. Needs forms:read.
Scope forms:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form_id | path | string | Yes | A published form. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/forms/{form_id}/links
Send a form to a person as a link
Makes a link bound to the person's phone and sends it by text or WhatsApp. A second link for the same instance_id replaces the first and keeps the answers. If the message cannot be sent the new link is cancelled and the earlier one stays. Needs forms:write.
Scope forms:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
form_id | path | string | Yes | A published form. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/form-links/{root_id}/history
Get what happened on one form instance
Issued, opened, saved, code sent, submitted, renewed, revoked, in order. Needs form-links:read.
Scope form-links:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
root_id | path | string | Yes | The instance (`root_id` of a link). |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/form-links/{link_id}/revoke
Cancel a form link
Stops the link. Answers already saved stay with the submission. Needs form-links:write.
Scope form-links:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
link_id | path | string | Yes | The link. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |