Skip to main content
Get a workflow schema
curl --request GET \
  --url https://app.simpledocs.com/api/v1/workflows/{id}/schema \
  --header 'Authorization: Bearer <token>'
{
  "name": "Vendor Agreement",
  "description": "<string>",
  "required_fields": [
    "workflow_id",
    "requester_email",
    "counterparty_name",
    "counterparty_email",
    "counterparty_organization_name"
  ],
  "required_variables": [
    "purpose"
  ],
  "variables_properties": {}
}

Authorizations

Authorization
string
header
required

Obtain a Bearer token via the Create access token endpoint using the OAuth2 client credentials flow.

Path Parameters

id
string
required

The resource's hash ID.

Example:

"0dbhXg"

Response

The workflow schema.

Describes the fields and variables required to create a request for this workflow.

name
string
Example:

"Vendor Agreement"

description
string | null
required_fields
string[]

Top-level fields that must be provided when creating a request.

Example:
[
  "workflow_id",
  "requester_email",
  "counterparty_name",
  "counterparty_email",
  "counterparty_organization_name"
]
required_variables
string[]

Variable names that must be included in the variables JSON.

Example:
["purpose"]
variables_properties
object

A map of variable names to their type definitions, including whether they are required and any available options.