diff --git a/openapi/anchor-platform/Callbacks API.yml b/openapi/anchor-platform/Callbacks API.yml index 37bdd8315..a4a086d18 100644 --- a/openapi/anchor-platform/Callbacks API.yml +++ b/openapi/anchor-platform/Callbacks API.yml @@ -466,3 +466,34 @@ paths: application/json: schema: $ref: './schemas.yml#/components/schemas/Error' + /event: + post: + tags: + - Events + - SEP-24 + - SEP-31 + summary: Receive a event from the anchor platform. + operationId: postEvent + description: | + Receive a JSON object representing an event. + requestBody: + content: + application/json: + schema: + type: object + properties: + timestamp: + type: string + description: | + `timestamp` the current Unix timestamp (number of seconds since epoch) at the time event is sent. + payload: + $ref: './schemas.yml#/components/schemas/Event' + responses: + '200': + description: The event is successfully processed and ready to receive next event. The response body is empty. + '400': + description: The event is invalid or rejected. The response body contains the error message. + + + +