Socotra
API ReferenceEvents API

Events API

ActionEndpoint
Fetch an EventGET/event/{tenantLocator}/events/{locator}
Fetch Events for an API RequestGET/event/{tenantLocator}/events/request/{locator}
Fetch Multiple EventsGET/event/{tenantLocator}/events/list
Fetch Scheduled Policy EventsGET/event/{tenantLocator}/events/schedules/policy/{policyLocator}
Fetch Scheduled Tenant EventsGET/event/{tenantLocator}/events/schedules/tenant
Schedule Custom Tenant EventsPOST/config/{tenantLocator}/tenantEvents
Resume Failed Scheduled EventPOST/event/{tenantLocator}/events/schedules/failed/resume
Fetch Failed Scheduled Policy EventsGET/event/{tenantLocator}/events/schedules/policy/{policyLocator}/failed/list
Fetch Failed Scheduled Tenant EventsGET/event/{tenantLocator}/events/schedules/tenant/failed/list
Fetch Failed Scheduled Events By Failed Job StateGET/event/{tenantLocator}/events/schedules/failed/{failedJobState}/list
Fetch Failed Scheduled EventsGET/event/{tenantLocator}/events/schedules/failed/list
Delete Failed Scheduled EventDELETE/event/{tenantLocator}/events/schedules/failed

Fetch

Fetch an Event

Fetch an EventfetchEvent
GET/event/{tenantLocator}/events/{locator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:EventResponse
Security Group:events
Permission:
read

Fetch Events for an API Request

Fetch Events for an API RequestfetchEventsForARequest
GET/event/{tenantLocator}/events/request/{locator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:EventResponse[]
Security Group:events
Permission:
read

Fetch Multiple Events

Fetch Multiple EventsfetchMultipleEvents
GET/event/{tenantLocator}/events/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
startTimestampquerydatetime?No
endTimestampquerydatetime?No
typequerystring?No
pageSizequeryinteger?No
pagingTokenquerystring?No
Security Group:events
Permissions:
read,list
EventStreamResponse

Required properties

PropertyTypeDescription
pagingTokenstring
eventsEventResponse[]
EventResponse

Required properties

PropertyTypeDescription
locatorulid
userLocatoruuid
requestIdulidIdentifier of the transaction request that triggered the event
timestampdatetime
typestring
datamap<string, object>

Fetch Scheduled Policy Events

Fetch Scheduled Policy EventsfetchScheduledPolicyEvents
GET/event/{tenantLocator}/events/schedules/policy/{policyLocator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
policyLocatorpathulidYes
Security Group:events
Permission:
read
ScheduledPolicyEvent

Required properties

PropertyTypeDescription
policyLocatorulid
transactionLocatorulid
triggerStateEnum NONE | NORMAL | PAUSED | COMPLETE | ERROR | BLOCKED
customEventIdstring

Optional properties

PropertyTypeDescription
nextEventTimedatetime?

Fetch Scheduled Tenant Events

Fetch Scheduled Tenant EventsfetchScheduledTenantEvents
GET/event/{tenantLocator}/events/schedules/tenant

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Security Group:events
Permission:
read
ScheduledTenantEvent

Required properties

PropertyTypeDescription
triggerStateEnum NONE | NORMAL | PAUSED | COMPLETE | ERROR | BLOCKED
customEventIdstring
scheduledEventIdstring

Optional properties

PropertyTypeDescription
nextEventTimedatetime?

Schedule Custom Tenant Events

Schedule Custom Tenant EventsscheduleTenantEvents
POST/config/{tenantLocator}/tenantEvents

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Response:void
Security Group:tenantEvents
Permission:
tenant-events
ScheduleTenantEventsRequest

Required properties

PropertyTypeDescription
requestsScheduleTenantEventRequest[]
ScheduleTenantEventRequest

Required properties

PropertyTypeDescription
eventTimedatetime
eventTypeIdstring
scheduleIdstring
datamap<string, object>

Resume Failed Scheduled Event

Resume Failed Scheduled EventresumeFailedScheduledEvent
POST/event/{tenantLocator}/events/schedules/failed/resume

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Response:void
Security Group:events
Permission:
write

Fetch Failed Scheduled Policy Events

Fetch Failed Scheduled Policy EventsfetchFailedScheduledPolicyEvents
GET/event/{tenantLocator}/events/schedules/policy/{policyLocator}/failed/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
policyLocatorpathulidYes
offsetqueryinteger?No
countqueryinteger?No
Response:FailedJobDetails[]
Security Group:events
Permission:
read

Fetch Failed Scheduled Tenant Events

Fetch Failed Scheduled Tenant EventsfetchFailedScheduledTenantEvents
GET/event/{tenantLocator}/events/schedules/tenant/failed/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
offsetqueryinteger?No
countqueryinteger?No
Response:FailedJobDetails[]
Security Group:events
Permission:
read

Fetch Failed Scheduled Events By Failed Job State

Fetch Failed Scheduled Events By Failed Job StatefetchFailedScheduledEventsByFailedJobState
GET/event/{tenantLocator}/events/schedules/failed/{failedJobState}/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
failedJobStatepathEnum queued | quitYes
offsetqueryinteger?No
countqueryinteger?No
Response:FailedJobDetails[]
Security Group:events
Permission:
read

Fetch Failed Scheduled Events

Fetch Failed Scheduled EventsfetchFailedScheduledEvents
GET/event/{tenantLocator}/events/schedules/failed/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
offsetqueryinteger?No
countqueryinteger?No
Response:FailedJobDetails[]
Security Group:events
Permission:
read

Delete Failed Scheduled Event

Delete Failed Scheduled EventdeleteFailedScheduledEvent
DELETE/event/{tenantLocator}/events/schedules/failed

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Response:void
Security Group:events
Permission:
write
FailedJobRequest

Required properties

PropertyTypeDescription
triggerNamestring
triggerGroupstring
FailedJobDetails

Required properties

PropertyTypeDescription
triggerNamestring
failedJobStateEnum queued | quit
failureCountinteger
triggerGroupstring
updatedAtdatetime
createdAtdatetime

Custom events generated from plugin code will be added to the event stream even if the operation associated with that plugin call has failed.

For events generated from API calls, The timestamp and ordering of events in the event stream are dependent on the completion time of the call. It is possible for events from an API call made before another to come after those events from the subsequent API call, if the first call takes longer than the second call to complete.

See Also

On this page