curl --request POST \
--url https://api.botpress.cloud/v1/admin/integrations/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-workspace-id: <x-workspace-id>' \
--data '
{
"name": "<string>",
"version": "<string>",
"configuration": {
"title": "<string>",
"description": "<string>",
"schema": {},
"identifier": {
"required": true,
"linkTemplateScript": "<string>"
}
},
"configurations": {},
"states": {},
"events": {},
"actions": {},
"entities": {},
"attributes": {},
"identifier": {
"fallbackHandlerScript": "<string>",
"extractScript": "<string>"
},
"channels": {},
"user": {
"creation": {
"enabled": true,
"requiredTags": [
"<string>"
]
},
"tags": {}
},
"interfaces": {},
"extraOperations": {},
"secrets": {},
"code": "<string>",
"url": "<string>",
"dev": true,
"icon": "<string>",
"readme": "<string>",
"title": "<string>",
"description": "<string>",
"public": true,
"visibility": "public",
"layers": [
"<string>"
]
}
'{}Perform a validation of an integration creation request
curl --request POST \
--url https://api.botpress.cloud/v1/admin/integrations/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-workspace-id: <x-workspace-id>' \
--data '
{
"name": "<string>",
"version": "<string>",
"configuration": {
"title": "<string>",
"description": "<string>",
"schema": {},
"identifier": {
"required": true,
"linkTemplateScript": "<string>"
}
},
"configurations": {},
"states": {},
"events": {},
"actions": {},
"entities": {},
"attributes": {},
"identifier": {
"fallbackHandlerScript": "<string>",
"extractScript": "<string>"
},
"channels": {},
"user": {
"creation": {
"enabled": true,
"requiredTags": [
"<string>"
]
},
"tags": {}
},
"interfaces": {},
"extraOperations": {},
"secrets": {},
"code": "<string>",
"url": "<string>",
"dev": true,
"icon": "<string>",
"readme": "<string>",
"title": "<string>",
"description": "<string>",
"public": true,
"visibility": "public",
"layers": [
"<string>"
]
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Workspace ID
Whether the client supports bots with multiple instances of the same integration. Set to "true" to receive integration instances keyed by their alias instead of their id. This header will be removed in the future, and the API will always return multiple instances keyed by alias.
Integration
Name of the Integration
200Version of the Integration
200Default configuration definition of the integration
Show child attributes
Title of the configuration
64Description of the configuration
256Schema of the configuration in the JSON schema format. The configuration data is validated against this JSON schema.
Additional configuration definitions of the integration
Show child attributes
Show child attributes
Title of the configuration
64Description of the configuration
256Schema of the configuration in the JSON schema format. The configuration data is validated against this JSON schema.
Show child attributes
State definition
Show child attributes
Show child attributes
Event Definition
Show child attributes
Title of the event
64Description of the event
256Show child attributes
Action definition
Show child attributes
Title of the action
64Description of the action
256Show child attributes
Show child attributes
Title of the channel
64Description of the channel
256Show child attributes
The conversation creation setting determines how to create a conversation through the API directly. The integration will have to implement the createConversation functionality to support this setting.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The user creation setting determines how to create a user through the API directly. The integration will have to implement the createUser functionality to support this setting.
Show child attributes
Show child attributes
ID of the interface
28 - 36JavaScript code of the integration
URL of the integration
Indicates if the integration is a development integration; Dev integrations run locally
Base64 encoded svg of the integration icon. This icon is global to the integration each versions will be updated when this changes.
Base64 encoded markdown of the integration readme. The readme is specific to each integration versions.
Title of the integration. This is the name that will be displayed in the UI
1 - 64Description of the integration. This is the description that will be displayed in the UI
256[DEPRECATED] Indicates whether the integration is public. Please use the "visibility" parameter instead.
The integration's visibility. Public integrations are available to all and cannot be updated without creating a new version. Unlisted integrations behave identically to public integrations, but they are not listed in the integration hub. By default, integrations are private and only accessible to the workspace that created them.
public, private, unlisted Validation succeeded: the integration can be created using the same parameters
The response is of type validateIntegrationCreationResponse · object.
Was this page helpful?