Skip to main content
POST
/
api
/
v2
/
public
/
config
/
field
curl -X POST "https://app.refold.ai/api/v2/public/config/field" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
  -H "slug: {slug}" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "slug": "hubspot",
  "field_errors": [],
  "fields": [
    {
      "id": "699fec7a5bd27ed2af7243ad",
      "name": "Select",
      "field_type": "select",
      "required": false,
      "multiple": true,
      "hidden": false,
      "options": [
        { "name": "A", "value": "A" },
        { "name": "B", "value": "B" },
        { "name": "C", "value": "C" }
      ],
      "defaultValue": ""
    }
  ],
  "workflows": []
}
Return the configured fields and workflows for an app’s config on a linked account. This is a POST because field datasources may accept a payload when resolving options. Use it to render a configuration UI for the connected app.

Authentication

This endpoint is scoped to a linked account, so it accepts either authentication method. Option 1 — API key
x-api-key
string
Your Refold API key.
linked_account_id
string
The linked account whose config to read.
Option 2 — Session token
Authorization
string
Session token. Format: Bearer YOUR_SESSION_TOKEN

Headers

slug
string
required
The app slug whose config to read.Example: hubspot

Response

slug
string
The app slug.
fields
array
Configurable fields.
workflows
array
Workflows available in this config.
field_errors
array
Any errors resolving field datasources.
{
  "slug": "hubspot",
  "field_errors": [],
  "fields": [
    {
      "id": "699fec7a5bd27ed2af7243ad",
      "name": "Select",
      "field_type": "select",
      "required": false,
      "multiple": true,
      "hidden": false,
      "options": [
        { "name": "A", "value": "A" },
        { "name": "B", "value": "B" },
        { "name": "C", "value": "C" }
      ],
      "defaultValue": ""
    }
  ],
  "workflows": []
}
curl -X POST "https://app.refold.ai/api/v2/public/config/field" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
  -H "slug: {slug}" \
  -H "Content-Type: application/json" \
  -d '{}'