GET
/
o
/
{organisation_id}
/
connectors
/
{connector_id}
/
versions
/
{version}
/
triggers

Authorizations

Authorization
string
headerrequired

Bearer token authentication used by the Versori Platform. External consumers must provide an API key, however internal consumers must provide a JWT id_token issued by our IdP.

Path Parameters

organisation_id
string
required
connector_id
string
required

ID is the unique identifier of the Connector.

version
string
required

Version is the version name of the Connector to retrieve. The reserved names "latest" and "default" may be used to retrieve the latest version or the default version respectively.

Query Parameters

first
integer
default: 20
after
string
before
string
name
string

Name filters Triggers by name using a case-insensitive substring-match.

Response

200 - application/json

TriggerPage defines a paginated list of Triggers.

totalCount
integer
required
next
string
prev
string
triggers
object[]
required
triggers.id
string
required

ID is the unique identifier of the Trigger.

triggers.errors
object[]

Errors is a list of ErrorField objects which defines the errors which may be returned by the Trigger. An empty array denotes that the Trigger has been validated and no errors were found. If this field is undefined then this means validation has not occurred.

triggers.type
enum<string>
required
Available options:
http
triggers.name
string
required

Name is a unique identifier for the Trigger within the scope of the Connector. It is expected to both human and machine-readable, i.e. "GetProduct" or "get_products", see the validation regex for more details.

triggers.summary
string

Summary is a human-readable version of the id field, i.e. "Get Product" or "Get Products". This is used when displaying the Trigger to users, however if omitted the TriggerId can be used to display to users instead.

triggers.description
string

Description is a human-readable description of the Trigger. It can provide extra information to users about how the Trigger operates and anything the user may need to be aware of when using it.

triggers.method
enum<string>
required

HTTPMethod defines the HTTP method which will be used when invoking the Action. This is typically one of the standard HTTP methods such as GET, POST, PUT, PATCH or DELETE, but may be any valid HTTP method.

Available options:
GET,
POST,
PUT,
PATCH,
DELETE,
HEAD,
OPTIONS,
CONNECT,
TRACE
triggers.parameters
object[]
required
triggers.requestBody
object

TriggerHTTPRequestBody defines whether a request body is required for a particular HTTP Trigger, and if so which Definitions are considered valid. If this value is undefined then no request body will be sent.

triggers.responses
object[]
required

Responses defines the expected responses from the HTTP endpoint. This is used to determine whether the Trigger was successful or not.