Yoxel Webhooks API

Webhooks allow your application to receive simple notifications when certain events occur. They essentially tell your application that it can run incremental syncs to obtain the changed records (updated/deleted). ## Prerequisites Gmail notifications require a special configuration, explained in [this article](https://developers.google.com/gmail/api/guides/push). A PubSub PUSH subscription should specify your Aurinko endpoint `https://{yourAurinkoDomain}/push/google/email` so that Gmail notifications are delivered to Aurinko first. Once the PubSub subscription is configured and the `publish` rights are granted to `gmail-api-push@system.gserviceaccount.com` please specify your PubSub topic in the Application settings (Google OAuth) in the Aurinko portal. ## Notification URL verification To ensure that notifications are being delivered to a server under your direct control, we must verify your ownership by issuing you a challenge request. Please make sure your notification endpoint (specified in the notificationUrl property) responds to a validation request. If validation fails, the request to create the subscription returns a 400 Bad Request error. 1. Aurinko sends a POST request to the notification URL: ``` Content-Type: text/plain; charset=utf-8 POST https://{notificationUrl}?validationToken={challenge} ``` 2. The client must provide a response: * A 200 (OK) status code. * The body must include the validation token provided by the validationToken query parameter ## Notifications Aurinko sends notifications as POST requests with the following json payload: ``` { "subscription" : integer, // subscription Id "resource" : string, "accountId": integer, "error": string, // if any "lifecycleEvent": string, // Enum of `error` or `active`, when subscription state changes "payloads" : [...] } ``` You notification endpoint should respond with the 200 (OK) status code when a notification is successfully processed. ### Notification validation Aurinko signs its requests using a secret unique to your app. Here's an overview of the process to validate a signed request from Aurinko: 1. Retrieve the `X-Aurinko-Request-Timestamp` header on the HTTP request, and the body of the request (Use the raw request body, before it has been deserialized from JSON or other forms.). 2. Concatenate the version number, the timestamp, and the body of the request to form a basestring. Use a colon as the delimiter between the three elements. The version number right now is always `v0`. ``` final byte[] signData = org.apache.commons.lang3.ArrayUtils.addAll( ("v0:" + timestampSeconds + ":").getBytes(StandardCharsets.UTF_8), payloadBytes ); ``` 3. With the help of HMAC SHA256 implemented in your favorite programming language, hash the above basestring, using the Aurinko Signing Secret as the key. 4. Compare this computed signature to the `X-Aurinko-Signature` header on the request. If it matches - request is valid, if not - request must be discarded.

Operations 4

POST /v1/subscriptions Create a push event subscription #
GET /v1/subscriptions Get a list of push event subscriptions #
GET /v1/subscriptions/{id} Check a subscription status #
DELETE /v1/subscriptions/{id} Remove a subscription #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aurinko:aurinko-webhooks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aurinko-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@aurinko.io
  description: '## Introduction

    The Aurinko API is a unified API platform allowing developers to quickly build integrations with

    many mailbox providers and services like Google, Office 365, Outlook.com, MS Exchange, IMAP.

    The unified API abstracts away differences between many email, calendar, contact, task APIs

    to make it easy to connect and sync the mailbox data.


    The Aurinko API''s focus is convenient and reliable data synchronization for all supported

    data categories (email, calendar, contacts, tasks) so the API provides methods to receive changes/deltas

    and be notified of the changes (through webhooks) in a unified manner. The API''s sync/deltas model

    should allow developers to build reliable event based solutions easily.


    The Aurinko API is built on HTTP. Our API is RESTful. It has predictable resource URLs.

    It returns HTTP response codes to indicate errors. It also accepts and returns JSON in the HTTP body.


    ## API Authentication

    When you sign up for an account, you are given a Client Id and Secret

    for every application that you create. You use those to go through OAuth flows that allow you

    to start syncing remote account data through Aurinko. An account OAuth flow can be started with

    just the Client Id and the Client Secret will be required to obtain an account access token in the

    "authorization code" flow ("implicit grant" flow does is secured by the "trusted domains" setting).


    Aurinko offers two forms of authentication:


    - `Basic ` - used for authentication flows and administrative requests made from the server side.

    - `Bearer ` - used for working with an account data.

    - `Api Key in Cookie` - for in-browser apps that use Aurinko as their backend API with user sessions.

    - `Api Key in Header (X-Aurinko-Session)` - for server side apps that need user sessions


    Never share your client secret or access token. Keep them guarded and secure.


    ## Getting Started Guide

    If you have a use case you would like to implement, please consult us for feedback on the best API operations for the task.


    Click here to visit our API Guides.'
  termsOfService: https://www.aurinko.io/terms-of-service/
  title: Aurinko.io Webhooks API
  version: 1.0.0
servers:
- url: https://api.aurinko.io
  description: Production server
security:
- AccountToken: []
- AppAuth: []
  AccountIdHeader: []
- UserSessionHeader: []
  AccountIdHeader: []
- UserSessionCookie: []
  ClientIdHeader: []
  AccountIdHeader: []
- AuthTypeHeader: []
  ExchangeIdToken: []
  ClientIdHeader: []
  AccountIdHeader: []
tags:
- name: Webhooks
  description: 'Webhooks allow your application to receive simple notifications when certain events occur.

    They essentially tell your application that it can run incremental syncs to obtain the changed records (updated/deleted).


    ## Prerequisites

    Gmail notifications require a special configuration, explained in this article.

    A PubSub PUSH subscription should specify your Aurinko endpoint `https://{yourAurinkoDomain}/push/google/email`

    so that Gmail notifications are delivered to Aurinko first. Once the PubSub subscription is configured

    and the `publish` rights are granted to `gmail-api-push@system.gserviceaccount.com` please specify your

    PubSub topic in the Application settings (Google OAuth) in the Aurinko portal.


    ## Notification URL verification

    To ensure that notifications are being delivered to a server under your direct control, we must verify

    your ownership by issuing you a challenge request. Please make sure your notification endpoint

    (specified in the notificationUrl property) responds to a validation request. If validation fails,

    the request to create the subscription returns a 400 Bad Request error.


    1. Aurinko sends a POST request to the notification URL:

    ```

    Content-Type: text/plain; charset=utf-8

    POST https://{notificationUrl}?validationToken={challenge}

    ```

    2. The client must provide a response:

    * A 200 (OK) status code.

    * The body must include the validation token provided by the validationToken query parameter


    ## Notifications

    Aurinko sends notifications as POST requests with the following json payload:

    ```

    {

    "subscription" : integer, // subscription Id

    "resource" : string,

    "accountId": integer,

    "error": string, // if any

    "lifecycleEvent": string, // Enum of `error` or `active`, when subscription state changes

    "payloads" : [...]

    }

    ```


    You notification endpoint should respond with the 200 (OK) status code when a notification is successfully processed.


    ### Notification validation

    Aurinko signs its requests using a secret unique to your app.

    Here''s an overview of the process to validate a signed request from Aurinko:


    1. Retrieve the `X-Aurinko-Request-Timestamp` header on the HTTP request, and the body of the request (Use the raw request body, before it has been deserialized from JSON or other forms.).

    2. Concatenate the version number, the timestamp, and the body of the request to form a basestring. Use a colon as the delimiter between the three elements.

    The version number right now is always `v0`.

    ```

    final byte[] signData = org.apache.commons.lang3.ArrayUtils.addAll(

    ("v0:" + timestampSeconds + ":").getBytes(StandardCharsets.UTF_8),

    payloadBytes

    );

    ```

    3. With the help of HMAC SHA256 implemented in your favorite programming language, hash the above basestring, using the Aurinko Signing Secret as the key.

    4. Compare this computed signature to the `X-Aurinko-Signature` header on the request.

    If it matches - request is valid, if not - request must be discarded.'
paths:
  /v1/subscriptions:
    post:
      operationId: subscribe
      tags:
      - Webhooks
      summary: Create a push event subscription
      requestBody:
        description: Resource, i.e '/email/messages', '/calendars/primary/events', '/calendars/{id}/events'
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponse'
      x-codeSamples:
      - lang: cURL
        source: "curl -H 'Authorization: Bearer <access token>' \\\n    -X POST https://api.aurinko.io/v1/subscriptions \\\n    -d '{\n        \"resource\": \"/calendars/primary/events\",\n        \"notificationUrl\": \"https://myapp.com/push\"\n       }'"
    get:
      operationId: getSubscriptions
      tags:
      - Webhooks
      summary: Get a list of push event subscriptions
      parameters:
      - schema:
          default: 50
          format: int32
          type:
          - integer
          - 'null'
        in: query
        name: limit
        description: page size
        required: false
      - schema:
          default: 0
          format: int32
          type:
          - integer
          - 'null'
        in: query
        name: offset
        description: return records offset by the given number
        required: false
      - schema:
          default: false
          type:
          - boolean
          - 'null'
        in: query
        name: includeInactive
        description: include inactive subscriptions
        required: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionsPage'
      x-codeSamples:
      - lang: cURL
        source: "curl -H 'Authorization: Bearer <access token>' \\\n    -X POST https://api.aurinko.io/v1/subscriptions"
  /v1/subscriptions/{id}:
    get:
      operationId: getSubscription
      tags:
      - Webhooks
      summary: Check a subscription status
      parameters:
      - schema:
          format: int64
          type: integer
        in: path
        name: id
        description: A subscription identifier
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponse'
    delete:
      operationId: unsubscribe
      tags:
      - Webhooks
      summary: Remove a subscription
      parameters:
      - schema:
          format: int64
          type: integer
        in: path
        name: id
        description: A subscription identifier
        required: true
      responses:
        '200':
          description: Success
components:
  schemas:
    SubscriptionResponse:
      type: object
      properties:
        id:
          type: integer
          format: int64
        resource:
          type: string
        notificationUrl:
          type: string
        active:
          type: boolean
        failSince:
          type: string
          format: date-time
        failDescription:
          type: string
        disabledByBilling:
          type: boolean
        filters:
          type: array
          items:
            $ref: '#/components/schemas/DataConsumerFilter'
    DataConsumerFilter:
      type: string
      enum:
      - withoutDrafts
    SubscriptionsPage:
      type: object
      properties:
        offset:
          type: integer
        totalSize:
          type: integer
          format: int64
        done:
          type: boolean
        records:
          type: array
          items:
            $ref: '#/components/schemas/SubscriptionResponse'
    SubscriptionRequest:
      type: object
      properties:
        resource:
          type: string
        notificationUrl:
          type: string
        filters:
          type: array
          items:
            $ref: '#/components/schemas/DataConsumerFilter'
  securitySchemes:
    AppAuth:
      type: http
      scheme: basic
      description: App-level basic authentication using Client ID and Client Secret that can be obtained at Aurinko Dashboard page.
    AccountToken:
      type: http
      scheme: bearer
      description: Account-level authentication with account token obtained using `/auth/authorize` endpoint.
    UserSessionCookie:
      type: apiKey
      in: cookie
      name: AUR{APPID}
      description: Cookie-based user-level authentication
    UserSessionHeader:
      type: apiKey
      in: header
      name: X-Aurinko-Session
      description: Token-based user-level authentication
    ClientIdHeader:
      type: apiKey
      in: header
      name: X-Aurinko-Client-Id
      description: Client ID that can be obtained at Aurinko Dashboard page
    AccountIdHeader:
      type: apiKey
      in: header
      name: X-Aurinko-Account-Id
      description: User account id
    AuthTypeHeader:
      type: apiKey
      in: header
      name: X-Aurinko-Auth-Type
      description: 'Authentication type. Possible values: default, exchangeIdToken'
    ExchangeIdToken:
      type: http
      scheme: bearer
      bearerFormat: 'Exchange Identity Token (only with `X-Aurinko-Auth-Type: exchangeIdToken` header.)'
      description: 'Authentication using Exchange Identity Token. To use this method `X-Aurinko-Auth-Type: exchangeIdToken` header should be used.'
x-tagGroups:
- name: OAuth Flow
  tags:
  - Auth
  - Account
  - User
- name: Account management
  tags:
  - Accounts
  - Services
  - Managed accounts
- name: Email
  tags:
  - Messages
  - EmailSync
  - Drafts
  - EmailFolders
  - EmailTracking
  - FollowUpRobot
- name: Calendars
  tags:
  - Calendars
  - Events
  - CalSync
  - FreeBusySchedule
- name: Scheduling
  tags:
  - Booking
  - GroupBooking
  - Availability
- name: Contacts
  tags:
  - Contacts
  - ContSync
- name: Tasks
  tags:
  - TaskLists
  - Tasks
  - TaskSync
- name: Webhooks
  tags:
  - Webhooks
- name: Other
  tags:
  - Errors