Hang Activities API

The Activities API from Hang — 2 operation(s) for activities.

Operations 2

POST /v2/program-memberships/{program_membership_id}/activities Create a new activity. #
POST /v2/program-memberships/{program_membership_id}/activies/synchronous Create a new activity synchronously. #

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/hang-activities-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 email required.

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

OpenAPI Specification

hang-activities-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hang Partner API (params in:formData) Activities API
  description: '

    <p>The Partner API allows you to request various resources that can power your loyalty program.</p>

    &copy Hang 2023'
  version: 2023.09.07
  x-copyright: '&copy Hang 2023'
servers:
- url: /partner-api
security:
- ApiKeyAuth: []
tags:
- name: Activities
paths:
  /v2/program-memberships/{program_membership_id}/activities:
    post:
      tags:
      - Activities
      operationId: post_v2_program-memberships_program_membership_id_activities
      summary: Create a new activity.
      parameters:
      - name: program_membership_id
        in: path
        required: true
        description: the program membership id
        schema:
          type: string
      responses:
        '200':
          description: Activity recorded for post-processing
          content:
            application/json:
              schema:
                type: object
                properties:
                  idempotency_key:
                    type: string
                    description: idempotency key sent for activity
                additionalProperties: false
                required:
                - idempotency_key
      description: ''
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                activity[transaction_timestamp]:
                  type: number
                activity[value]:
                  type: string
                activity[activity_type_id]:
                  type: string
                idempotency_key:
                  type: string
                  description: used to prevent double-processing
                activity[line_items]:
                  type: array
                  items:
                    type: string
              required:
              - activity[transaction_timestamp]
              - activity[value]
              - activity[activity_type_id]
              - idempotency_key
          multipart/form-data:
            schema:
              type: object
              properties:
                activity[transaction_timestamp]:
                  type: number
                activity[value]:
                  type: string
                activity[activity_type_id]:
                  type: string
                idempotency_key:
                  type: string
                  description: used to prevent double-processing
                activity[line_items]:
                  type: array
                  items:
                    type: string
              required:
              - activity[transaction_timestamp]
              - activity[value]
              - activity[activity_type_id]
              - idempotency_key
  /v2/program-memberships/{program_membership_id}/activies/synchronous:
    post:
      tags:
      - Activities
      operationId: post_v2_program-memberships_program_membership_id_activies_synchronous
      summary: Create a new activity synchronously.
      parameters:
      - name: program_membership_id
        in: path
        required: true
        description: the program membership id
        schema:
          type: string
      responses:
        '200':
          description: Activity recorded for post-processing
          content:
            application/json:
              schema:
                type: object
                properties:
                  idempotency_key:
                    type: string
                    description: idempotency key sent for activity
                additionalProperties: false
                required:
                - idempotency_key
      description: ''
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                activity[transaction_timestamp]:
                  type: number
                activity[value]:
                  type: string
                activity[activity_type_id]:
                  type: string
                idempotency_key:
                  type: string
                  description: used to prevent double-processing
                activity[line_items]:
                  type: array
                  items:
                    type: string
              required:
              - activity[transaction_timestamp]
              - activity[value]
              - activity[activity_type_id]
              - idempotency_key
          multipart/form-data:
            schema:
              type: object
              properties:
                activity[transaction_timestamp]:
                  type: number
                activity[value]:
                  type: string
                activity[activity_type_id]:
                  type: string
                idempotency_key:
                  type: string
                  description: used to prevent double-processing
                activity[line_items]:
                  type: array
                  items:
                    type: string
              required:
              - activity[transaction_timestamp]
              - activity[value]
              - activity[activity_type_id]
              - idempotency_key
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key