Skip to content

Rest API

Get custom components

GET
/api/v1/components/custom-components
curl --request GET \
--url https://api.unless.com/api/v1/components/custom-components \
--header 'x-account-id: example' \
--header 'x-api-key: example' \
--header 'x-user-email: example' \
--header 'x-website-id: example'

List the custom components available to the account: its own, plus the public and built-in AI ones.

Notes

  • Disabled components are left out
  • createdAt and updatedAt are stripped from the response
  • Creating, updating and deleting custom components are not available with an API key, only from the dashboard
x-api-key
required
string

Your API key from account settings.

x-user-email
required
string

The email address of your user.

x-account-id
required
string

The ID of your account. You can find this in the account settings.

x-website-id
required
string

The ID of the workspace you want to use.

The available custom components.

Media typeapplication/json
object
components
Array<object>
object

Example generated

{
"components": [
{}
]
}

Unauthorized - invalid API key.