Documents

Document types

GET
/v1/workspaces/{workspace_id}/document-types

The types an envelope can be, switched on in the workspace, with the reference values each carries.

Authorization

bearer
headerAuthorizationBearer <token>

An access token from /v1/auth/token, or a personal token: opaque, beginning s2a_.

Path Parameters

workspace_id*string

wsp_…, from GET /v1/me

Lengthlength <= 40

Response Body

The document types switched on in the workspace

application/json
  1. response

The document types switched on in the workspace

data*array<>
curl -X GET 'https://api.sign2approve.com/v1/workspaces/string/document-types'
{  "data": [    {      "id": "dty_01a16d3fd3507be78e41c4540aa20a3c",      "name": "Quote",      "description": "A price for a customer",      "reference_prefix": "QUO-",      "fields": [        {          "key": "value",          "label": "Value",          "type": "currency",          "required": true        }      ]    }  ]}