Bloss Docs

Get a form's draft and versions

Developers
GET
/brands/{brandId}/onboarding/forms/{formId}

One onboarding form: its draft definition (sections and questions) with its revision, the live version creators fill in, its published versions, and what blocks publishing it. Read this before changing the form.

Authorization

bearerAuth onboarding:read
headerAuthorizationBearer <token>

Personal access token. Scopes: account:read, creator:read, creator:earnings, managed:read, coach:read, brand:read, creators:read, videos:read, analytics:read, onboarding:read, onboarding:signatures, engagement:read, support:read, integrations:read, payouts:read, funds:read, billing:read, groups:write, videos:write, onboarding:write, sync:write, payouts:write.

Scope: onboarding:read

Path Parameters

brandId*string

A brand id from GET /me or GET /creator/brands.

Length1 <= length
formId*string

A form id from GET .../onboarding/flows/{flowId} (forms, or a form task's formId).

Length1 <= length

Response Body

Success.

application/json
  1. response
id*string
flowId*|

The flow that owns it.

name*string
revision*number

Send as revision to PATCH .../onboarding/forms/{formId}.

archived*boolean
definition*

The draft.

published*|

The live version creators fill in. Null: never published.

versions*array<>

Published versions, newest first. Restore one with POST .../versions/{versionId}/restore.

problems*array<string>

What in the draft blocks publishing. Empty when it's ready.

curl -X GET 'https://example.com/api/v1/brands/string/onboarding/forms/string'
{  "id": "string",  "flowId": "string",  "name": "string",  "revision": 0,  "archived": true,  "definition": {    "sections": [      {        "id": "string",        "title": "string",        "description": "string",        "pageBreak": true,        "condition": {          "fieldId": "string",          "op": "equals",          "value": "string"        },        "fields": [          {            "id": "string",            "type": "short_text",            "label": "string",            "help": "string",            "placeholder": "string",            "required": false,            "width": "full",            "options": [              "string"            ],            "validation": {              "minLength": 0,              "maxLength": 1,              "min": 0,              "max": 0,              "pattern": "string",              "patternMessage": "string",              "allowedDomains": [                "string"              ]            },            "platform": "instagram",            "profileKey": "name",            "rating": {              "max": 5            },            "file": {              "accept": [                "image"              ],              "maxMb": 1            },            "media": {              "kind": "image",              "url": "string",              "fileId": "string"            },            "condition": {              "fieldId": "string",              "op": "equals",              "value": "string"            }          }        ]      }    ]  },  "published": {    "versionId": "string",    "version": 0,    "definition": {      "sections": [        {          "id": "string",          "title": "string",          "description": "string",          "pageBreak": true,          "condition": {            "fieldId": "string",            "op": "equals",            "value": "string"          },          "fields": [            {              "id": "string",              "type": "short_text",              "label": "string",              "help": "string",              "placeholder": "string",              "required": false,              "width": "full",              "options": [                "string"              ],              "validation": {                "minLength": 0,                "maxLength": 1,                "min": 0,                "max": 0,                "pattern": "string",                "patternMessage": "string",                "allowedDomains": [                  "string"                ]              },              "platform": "instagram",              "profileKey": "name",              "rating": {                "max": 5              },              "file": {                "accept": [                  "image"                ],                "maxMb": 1              },              "media": {                "kind": "image",                "url": "string",                "fileId": "string"              },              "condition": {                "fieldId": "string",                "op": "equals",                "value": "string"              }            }          ]        }      ]    }  },  "versions": [    {      "id": "string",      "version": 0,      "publishedAt": "string"    }  ],  "problems": [    "string"  ]}

Was this page helpful?