Skip to main content
POST
/
components
Create components
curl --request POST \
  --url https://api.dittowords.com/v2/components \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "components": [
    {
      "text": "Hello world",
      "name": "Component One"
    },
    {
      "developerId": "custom-id",
      "text": "Custom ID example",
      "name": "Custom Component"
    },
    {
      "text": "In folder",
      "name": "Folder Component",
      "folderId": "my-folder-id"
    }
  ]
}
'
{
  "developerIds": [
    "component-one",
    "custom-id",
    "folder-component"
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
components
object[]
required

Array of components to create

Response

200 - application/json

Returns the developer IDs of the created components

developerIds
string[]
required

Array of developer IDs for the created components