Create Endpoint
Creates a new webhook endpoint with the given properties
Request Body required
- Array [
- ]
The URL that will receive the webhook events.
event_types object[] optional
The types of events that this endpoint should receive.
This is an array of objects; each object has an eventName
property indicating the kind of event.
The object may also have a subcategory
property: some kinds of events require a subcategory.
The name of an event. There is a fixed set of supported event names, each representing a different kind of event that can be sent to a webhook endpoint. This is the same value that is sent to a webhook endpoint, in the "eventName" field of the request payload.
Optional subcategory. Some event types require further specifying a subcategory. For
example, the "recording.event.custom" event requires specifying a particular
custom event as the subcategory. This field will be empty for kinds of events that
do not require a subcategory. When specified, this needs to be the subcategory
returned
from List Event Subcategories and not the display_name
.
The shared secret that will be used to sign the events, so that the endpoint can authenticate Fullstory.
A successful response.
Schema
- Array [
- ]
A unique ID for the endpoint
The time when the endpoint was created
The time when the endpoint was last modified
Whether or not this endpoint is active
The destination URL of this endpoint
event_types object[] optional
A list of the event types that are currently configured to be sent to this endpoint
The name of an event. There is a fixed set of supported event names, each representing a different kind of event that can be sent to a webhook endpoint. This is the same value that is sent to a webhook endpoint, in the "eventName" field of the request payload.
Optional subcategory. Some event types require further specifying a subcategory. For
example, the "recording.event.custom" event requires specifying a particular
custom event as the subcategory. This field will be empty for kinds of events that
do not require a subcategory. When specified, this needs to be the subcategory
returned
from List Event Subcategories and not the display_name
.
{
"id": "aHR0cHM6Ly9leGFtcGxlLmNvbS9mdWxsc3Rvcnktd2ViaG9va3M",
"created": "2020-04-01T21:53:58.200Z",
"modified": "2020-04-01T21:53:58.200Z",
"enabled": true,
"url": "https://example.com/fullstory-webhooks",
"eventTypes": [
{
"eventName": "recording.event.custom",
"subcategory": "CgsiCW8tSDkxLW5hMRIOCgRTZWF0GgZzeXN0ZW0SEwoHU2VnbWVudBoIZXZlcnlvbmUSEQoIU2VhcmNoaWUaBTQ5MTY4EhAKBUFsZXJ0EICAgICAqJkL"
}
]
}
Returned when invalid input has been provided. Fix the issue and retry.
Schema
Long form description of what went wrong
A short snake-cased value that is safe to handle programmatically
{
"message": "uid is required",
"code": "required_field"
}
Returned when access to the resource is unauthorized.
Schema
Long form description of what went wrong
A short snake-cased value that is safe to handle programmatically
{
"message": "access is unauthorized",
"code": "unauthorized"
}
Returned when access is not allowed due to insufficient permissions.
Schema
Long form description of what went wrong
A short snake-cased value that is safe to handle programmatically
{
"message": "insufficient permissions",
"code": "forbidden"
}
Returned when the resource does not exist.
Schema
Long form description of what went wrong
A short snake-cased value that is safe to handle programmatically
{
"message": "Requested resource does not exist",
"code": "resource_not_found"
}
Returned when the client has exceeded the rate limit for this endpoint.
Schema
Long form description of what went wrong
A short snake-cased value that is safe to handle programmatically
{
"message": "Too many requests. Client has exceeded the rate limit for this endpoint.",
"code": "too_many_requests"
}
Returned when a server error is encountered
Schema
Long form description of what went wrong
A short snake-cased value that is safe to handle programmatically
{
"message": "Server error was encountered",
"code": "server_error"
}