NMI

NMI Component Sessions API

The Component Sessions API from NMI — 1 operation(s) for component sessions.

Operations 1

POST /sessions Create a Session #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-conversation-amount-input-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-conversation-expiration-date-input-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-conversation-instructions-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-nmi-record-id-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-conversation-id-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-conversation-customer-phone-with-dashes-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-credit-card-payment-in-full-partial-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-credit-card-sale-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-achcredit-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-achsale-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-credit-card-capture-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-package-fields-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-application-document-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-package-collection-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-full-application-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-subscription-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/nmi/refs/heads/main/json-schema/nmi-pagination-schema.json

Other Resources

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/nmi:nmi-component-sessions-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

nmi-component-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Embedded Components Component Sessions API
  version: 1.0.0
  description: API for creating sessions for embedded components.
servers:
- url: https://sandbox.nmi.com/api/v5/embedded-reporting
tags:
- name: Component Sessions
paths:
  /sessions:
    post:
      summary: Create a Session
      description: This endpoint creates a short-lived session token that your embedded components can use to authenticate and fetch data. You must call this endpoint from your backend server to avoid exposing your API key.
      operationId: create-embedded-component-session
      tags:
      - Component Sessions
      requestBody:
        description: An optional request body to specify constraints for the session.
        required: false
        content:
          application/json:
            schema:
              anyOf:
              - type: object
                title: Gateway
                properties:
                  gateway:
                    type: object
                    description: Credentials and options required to create a session for Gateway components.
                    properties:
                      api_key:
                        type: string
                        description: The api key to retrieve the session token. MUST start with `v4_secret_`. Maximum 255 characters.
                        example: '51123456'
                      merchant_id:
                        type: string
                        description: The specific merchant ID to scope the session to. Maximum 20 digits.
                      environment:
                        type: string
                        enum:
                        - production
                        - sandbox
                        default: production
                        description: Specifies the gateway environment.
                    required:
                    - merchant_id
                    - api_key
                required:
                - gateway
              - type: object
                title: Merchant Central
                properties:
                  merchant-central:
                    type: object
                    description: Credentials and options required to create a session for Merchant Central components.
                    properties:
                      api_key:
                        type: string
                        description: Merchant Central API key. Maximum 255 characters.
                      tenant_id:
                        type: string
                        description: Your Merchant Central subdomain, e.g., "XXX" for XXX.iriscrm.com. Maximum 200 characters.
                      merchant_id:
                        type: string
                        description: The specific merchant ID to scope the session to. Maximum 20 digits.
                    required:
                    - api_key
                    - tenant_id
                    - merchant_id
                required:
                - merchant-central
            examples:
              Gateway:
                summary: Gateway
                value:
                  gateway:
                    api_key: CORRECT_API_KEY
                    merchant_id: '12345'
                    environment: sandbox
              Merchant Central:
                summary: Merchant Central
                value:
                  merchant-central:
                    api_key: CORRECT_API_KEY
                    tenant_id: mycentral
                    merchant_id: '123456789'
      responses:
        '200':
          description: Session created successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  session_token:
                    type: string
                    example: 8910cbad-eed7-ad6c-572b2be67201.69613616.ZrEjQlHsm-uj9Iy5DTfK5KqaKrtVWeNk4LrfcTVFXQ4ESLCkOi0zHwHVu_Bv8H_j
                  expires_at:
                    type: string
                    example: '2025-12-20T17:13:38+00:00'
              examples:
                OK:
                  summary: OK
                  value:
                    session_token: 8910cbad-eed7-ad6c-572b2be67201.69613616.ZrEjQlHsm-uj9Iy5DTfK5KqaKrtVWeNk4LrfcTVFXQ4ESLCkOi0zHwHVu_Bv8H_j
                    expires_at: '2025-12-20T17:13:38+00:00'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Missing/Invalid Authentication
              examples:
                Unauthorized:
                  summary: Unauthorized
                  value:
                    message: Missing/Invalid Authentication
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: The gateway.merchant_id field must be a numeric string
                  errors:
                    type: object
                    properties:
                      gateway.merchant_id:
                        type: array
                        items:
                          type: string
                          example: The gateway.merchant_id field must be a numeric string
              examples:
                Unprocessable Entity:
                  summary: Unprocessable Entity
                  value:
                    message: The gateway.merchant_id field must be a numeric string
                    errors:
                      gateway.merchant_id:
                      - The gateway.merchant_id field must be a numeric string
      x-readme: {}
      parameters:
      - in: header
        name: accept
        schema:
          type: string
          default: ''
        description: application/json
        required: true
      - in: header
        name: content-type
        schema:
          type: string
          default: ''
        description: application/json
        required: true
x-provenance:
  method: searched
  source: https://docs.nmi.com/reference
  harvested: '2026-10-14'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://docs.nmi.com/reference/create-embedded-component-session.md
  merge:
    pages: 1
    deduped: 0
    conflicts_kept_first: 0