Kard attributions API

The attributions API from Kard — 1 operation(s) for attributions.

Operations 1

POST /issuers/{organizationId}/attributions Create Attribution Events #

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/kard-attributions-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

kard-attributions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference Attributions API
  version: 1.0.0
servers:
- url: https://rewards-api.getkard.com
  description: Production
- url: https://test-rewards-api.getkard.com
  description: Sandbox
tags:
- name: attributions
paths:
  /issuers/{organizationId}/attributions:
    post:
      operationId: create-attribution-events
      summary: Create Attribution Events
      description: 'Call this endpoint to send all attribution events made by all enrolled users in your rewards program. These attribution events will be processed by the Kard system.<br/>

        <b>Required scopes:</b> `attributions.write`'
      tags:
      - attributions
      parameters:
      - name: organizationId
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/type_attributions_OrganizationId'
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      - name: X-Kard-organizationId
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                type: string
        '400':
          description: Error response with status 400
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_commons_InvalidRequestUnion'
        '401':
          description: Error response with status 401
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_commons_UnauthorizedErrorBody'
        '500':
          description: Error response with status 500
          content:
            application/json:
              schema:
                type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/type_attributions_CreateAttributionRequestBody'
components:
  schemas:
    type_attributions_CreateAttributionRequestBody:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/type_attributions_CreateAttributesRequest'
          description: Data and attributes related to the attribution event.
      required:
      - data
      title: CreateAttributionRequestBody
    type_attributions_UserId:
      type: string
      description: The referring partner user ID associated with the attribution event.
      title: UserId
    type_attributions_OrganizationId:
      type: string
      description: Your organization ID, provided by Kard.
      title: OrganizationId
    type_attributions_Medium:
      type: string
      enum:
      - BROWSE
      - MAP
      - SEARCH
      - PUSH
      description: Where the attribution event is taking place in your rewards experience.
      title: Medium
    type_attributions_CreateAttributesRequest:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/type_attributions_ObjectType'
        attributes:
          $ref: '#/components/schemas/type_attributions_Attributes'
      required:
      - type
      - attributes
      title: CreateAttributesRequest
    type_attributions_Type:
      type: string
      enum:
      - OFFER
      - NOTIFICATION
      description: What the attribution event is on.
      title: Type
    type_commons_UnauthorizedErrorBody:
      type: object
      properties:
        message:
          type: string
      required:
      - message
      title: UnauthorizedErrorBody
    type_attributions_ObjectType:
      type: string
      enum:
      - attribution
      title: ObjectType
    type_attributions_TypeId:
      type: string
      description: The ID in Kard’s system associated with what the attribution event is on. If `type` is `OFFER`, `typeId` should be the associated offer ID in Kard’s system.
      title: TypeId
    type_attributions_Subtype:
      type: string
      enum:
      - IMPRESSION
      - VIEW
      description: The type of attribution event.
      title: Subtype
    type_commons_InvalidRequestUnion:
      oneOf:
      - $ref: '#/components/schemas/type_commons_RequestValidationErrorResponse'
      - type: string
      title: InvalidRequestUnion
    type_attributions_Attributes:
      type: object
      properties:
        userId:
          $ref: '#/components/schemas/type_attributions_UserId'
        type:
          $ref: '#/components/schemas/type_attributions_Type'
        subtype:
          $ref: '#/components/schemas/type_attributions_Subtype'
        medium:
          $ref: '#/components/schemas/type_attributions_Medium'
        typeId:
          $ref: '#/components/schemas/type_attributions_TypeId'
      required:
      - userId
      - type
      - subtype
      - typeId
      title: Attributes
    type_commons_RequestValidationErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: string
      required:
      - errors
      title: RequestValidationErrorResponse
  securitySchemes:
    bearer:
      type: http
      scheme: bearer