Resonance Events API

Track customer events and trigger rewards

GitHub OpenAPI

Operations 3

POST /resonance-api/manual-event Track a customer event #
POST /resonance-api/bulk-events Submit multiple events #
GET /resonance-api/event-config Get event configurations #

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/rsnc-network:rsnc-network-events-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

rsnc-network-events-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Resonance Events API
  description: 'Complete REST API for Resonance loyalty platform. Track events, distribute rewards, manage wallets.


    ## Base URLs


    - **Event Handler**: `https://api.rsnc.network`

    - **Gas Relayer**: `https://relayer.rsnc.network`

    - **Pregeneration**: `https://register.rsnc.network`


    ## Authentication


    Most endpoints use Brand ID authentication (included in request body).

    Gas Relayer requires Privy Bearer token authentication.'
  version: 1.0.0
  contact:
    name: Resonance Support
    email: support@rsnc.network
    url: https://docs.rsnc.network
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  externalDocs:
    description: Full Documentation
    url: https://docs.rsnc.network/api/rest-api
servers:
- url: https://api.rsnc.network
  description: Production API
- url: https://relayer.rsnc.network
  description: Gas Relayer API
- url: https://register.rsnc.network
  description: OAuth Pregeneration API
tags:
- name: Events
  description: Track customer events and trigger rewards
paths:
  /resonance-api/manual-event:
    post:
      tags:
      - Events
      summary: Track a customer event
      description: 'Track a customer event and automatically reward them with RSNC tokens.

        The system will create a wallet if needed and distribute rewards based on your configured rules.'
      operationId: trackEvent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EventRequest'
            examples:
              newsletterSignup:
                summary: Newsletter Signup
                value:
                  brandId: '0x47511fc1c6664c9598974cb112965f8b198e0c725e'
                  eventType: newsletter_signup
                  userEmail: user@example.com
                  domain: example.com
                  metadata:
                    source: homepage
                    campaign: summer-2024
              accountCreation:
                summary: Account Creation
                value:
                  brandId: '0x47511fc1c6664c9598974cb112965f8b198e0c725e'
                  eventType: account_creation
                  userEmail: newuser@example.com
                  domain: example.com
                  metadata:
                    userId: user_123
                    source: website
              purchase:
                summary: Purchase Event
                value:
                  brandId: '0x47511fc1c6664c9598974cb112965f8b198e0c725e'
                  eventType: purchase
                  userEmail: customer@example.com
                  domain: example.com
                  metadata:
                    orderId: order_456
                    amount: 99.99
                    items: 3
      responses:
        '200':
          description: Event tracked successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventResponse'
              examples:
                success:
                  summary: Successful event tracking
                  value:
                    success: true
                    eventId: 550e8400-e29b-41d4-a716-446655440000
                    message: 100 RSNC tokens minted successfully!
                    rewardAmount: 100
                    eventType: newsletter_signup
                    walletAddress: '0x1234567890123456789012345678901234567890'
                    transactionHash: '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890'
        '400':
          description: Bad request - validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Domain not authorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
  /resonance-api/bulk-events:
    post:
      tags:
      - Events
      summary: Submit multiple events
      description: Submit multiple events in a single request for batch processing
      operationId: trackBulkEvents
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - events
              properties:
                events:
                  type: array
                  items:
                    $ref: '#/components/schemas/EventRequest'
                  minItems: 1
                  maxItems: 100
      responses:
        '200':
          description: Events processed
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  processed:
                    type: integer
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/EventResponse'
  /resonance-api/event-config:
    get:
      tags:
      - Events
      summary: Get event configurations
      description: Retrieve all active event configurations for a brand
      operationId: getEventConfig
      parameters:
      - name: brandId
        in: query
        required: true
        schema:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
        description: Your brand wallet address
      responses:
        '200':
          description: Event configurations
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  brandId:
                    type: string
                  events:
                    type: array
                    items:
                      $ref: '#/components/schemas/EventConfig'
components:
  schemas:
    EventResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        eventId:
          type: string
          format: uuid
          description: Unique event identifier
          example: 550e8400-e29b-41d4-a716-446655440000
        message:
          type: string
          example: 100 RSNC tokens minted successfully!
        rewardAmount:
          type: integer
          description: Amount of RSNC tokens rewarded
          example: 100
        eventType:
          type: string
          example: newsletter_signup
        walletAddress:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
          description: User's wallet address (created if new)
          example: '0x1234567890123456789012345678901234567890'
        transactionHash:
          type: string
          pattern: ^0x[a-fA-F0-9]{64}$
          description: Blockchain transaction hash
          example: '0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890'
        reward:
          type: object
          properties:
            amount:
              type: integer
            eventType:
              type: string
            walletAddress:
              type: string
            transactionHash:
              type: string
    RateLimitError:
      allOf:
      - $ref: '#/components/schemas/ErrorResponse'
      - type: object
        properties:
          retryAfter:
            type: integer
            description: Seconds to wait before retrying
            example: 3600
          details:
            type: object
            properties:
              message:
                type: string
              reason:
                type: string
                enum:
                - cooldown_not_expired
                - rate_limit_exceeded
              cooldownSeconds:
                type: integer
    EventRequest:
      type: object
      required:
      - brandId
      - eventType
      - userEmail
      properties:
        brandId:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
          description: Your brand wallet address (42 characters, starts with 0x)
          example: '0x47511fc1c6664c9598974cb112965f8b198e0c725e'
        eventType:
          type: string
          pattern: ^[a-zA-Z0-9_]{1,50}$
          description: Event type identifier (alphanumeric + underscore, max 50 chars)
          example: newsletter_signup
        userEmail:
          type: string
          format: email
          maxLength: 254
          description: User's email address (RFC 5322 compliant)
          example: user@example.com
        domain:
          type: string
          maxLength: 253
          description: Your website domain (extracted from sourceUrl if not provided)
          example: example.com
        sourceUrl:
          type: string
          format: uri
          maxLength: 2048
          description: URL where the event occurred
          example: https://example.com/newsletter
        userIdentifier:
          type: string
          description: Alternative identifier (email or Ethereum address)
        metadata:
          type: object
          additionalProperties: true
          description: Additional event data
          example:
            source: homepage
            campaign: summer-2024
            userId: user_123
    EventConfig:
      type: object
      properties:
        eventId:
          type: string
        eventType:
          type: string
        rewardAmount:
          type: integer
        maxClaims:
          type: integer
        cooldownHours:
          type: integer
        detectionMethod:
          type: string
          enum:
          - manual
          - url_pattern
          - form_auto
          - sdk_auto
        detectionConfig:
          type: object
        isCustom:
          type: boolean
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          description: Human-readable error message
          example: Invalid email address
        code:
          type: string
          description: Machine-readable error code
          example: INVALID_EMAIL
        details:
          type: object
          additionalProperties: true
          description: Additional error details
          properties:
            errors:
              type: array
              items:
                type: string
            field:
              type: string
            value:
              type: string
  securitySchemes:
    PrivyAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Privy access token from Privy SDK