Rest API
Get custom components
GET
/api/v1/components/custom-components
const url = 'https://api.unless.com/api/v1/components/custom-components';const options = { method: 'GET', headers: { 'x-api-key': 'example', 'x-user-email': 'example', 'x-account-id': 'example', 'x-website-id': 'example' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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
createdAtandupdatedAtare stripped from the response- Creating, updating and deleting custom components are not available with an API key, only from the dashboard
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”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.
Responses
Section titled “Responses”The available custom components.
Media typeapplication/json
object
components
Array<object>
object
Example generated
{ "components": [ {} ]}Unauthorized - invalid API key.