Retrieve a Form
const url = 'https://api.upvio.com/v1/businesses/example/forms/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.upvio.com/v1/businesses/example/forms/example \ --header 'Authorization: Bearer <token>'Retrieve a Form by ID.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The ID of the Business.
The ID of the Form.
Responses
Section titled “Responses”A Form.
object
A form to collect data from users.
object
Unique identifier across the platform.
The unique alias of the form.
The title of the form.
The description of the form.
The category of the form.
The visibility of the form.
The total number of submissions for the form.
The number of unread submissions for the form.
The date and time when the form was published.
Time when the resource was created (ISO 8601 format).
Time when the resource was last updated (ISO 8601 format).
The URL to access the form.
The current status of the form.
The steps that make up this form.
object
The draft version of the form, if available.
object
Unique identifier across the platform.
The steps that make up the draft form.
object
Example
{ "data": { "alias": "booking-form", "title": "Booking Form", "description": "Default form used for appointment bookings.", "category": "General Practice", "visibility": "LISTED", "status": "Draft" }}The form ID is malformed.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 400, "type": "BadRequestError", "title": "Invalid platformId format." }}The API key is missing or invalid, or the Business cannot be accessed with it.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 403, "type": "UnauthorizedError", "title": "Invalid API token" }}The form does not exist.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 404, "type": "NotFoundError", "title": "Form not found" }}