GET
/
variables
Fetch variables
curl --request GET \
  --url https://api.dittowords.com/v2/variables \
  --header 'Authorization: <api-key>'
[
  {
    "id": "Age",
    "name": "Age",
    "type": "number",
    "data": {
      "example": 21,
      "fallback": "18"
    }
  },
  {
    "id": "Jobs",
    "name": "Jobs",
    "type": "string",
    "data": {
      "example": "Engineer",
      "fallback": "Designer"
    }
  },
  {
    "id": "Link",
    "name": "Link",
    "type": "hyperlink",
    "data": {
      "text": "View",
      "url": "https://www.google.com/"
    }
  },
  {
    "id": "List",
    "name": "List",
    "type": "list",
    "data": [
      "true",
      "false"
    ]
  },
  {
    "id": "Map",
    "name": "Map",
    "type": "map",
    "data": {
      "0": "Zero",
      "1": "One",
      "2": "Two"
    }
  }
]

Authorizations

Authorization
string
header
required

Response

200 - application/json

Returns an array of variables in the workspace