> ## Documentation Index
> Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get last callback API

> See the last request a callback node's URL received in the past 30 minutes, how it was correlated, and whether an execution took it.



## OpenAPI

````yaml GET /workflows/{workflow_id}/nodes/{node_id}/callback:last
openapi: 3.1.0
info:
  title: Bolna API
  description: >-
    Use and leverage Bolna Voice AI using APIs through HTTP requests from any
    language in your applications and workflows.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.bolna.ai
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: >-
      Bring-your-own-carrier SIP trunks, their gateways, carrier IPs and
      numbers.
paths:
  /workflows/{workflow_id}/nodes/{node_id}/callback:last:
    get:
      description: >
        Reports the last request the node's live callback URL received: the
        parsed body, the value it was correlated on, whether a waiting execution
        took it, and the mapped values. Use it to check your system's requests,
        or to pick paths for `correlation.payload_path` and `payload_map` from a
        real body.


        The record is kept for 30 minutes after the request arrives. With
        nothing received in that window, the response is `{"received": null}`.
      parameters:
        - in: path
          name: workflow_id
          required: true
          schema:
            type: string
            format: uuid
          description: The unique `id` of the workflow
        - in: path
          name: node_id
          required: true
          schema:
            type: string
          description: >-
            The `id` of a callback node in the workflow's draft or in its latest
            published version
      responses:
        '200':
          description: 'The last request received, or `{"received": null}`'
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/WorkflowCallbackNothingReceived'
                  - $ref: '#/components/schemas/WorkflowCallbackLast'
        '404':
          description: Workflow not found, or it has no callback node with this id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowError'
        '502':
          description: >-
            `upstream_unavailable` — the last-received record could not be read;
            retry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowError'
components:
  schemas:
    WorkflowCallbackNothingReceived:
      type: object
      required:
        - received
      properties:
        received:
          type: object
          nullable: true
          description: Always `null` — the URL has received nothing in the last 30 minutes.
          example: null
    WorkflowCallbackLast:
      type: object
      required:
        - received_at
        - correlation_value
        - match
        - execution_id
        - values
        - warnings
      properties:
        received_at:
          type: string
          format: date-time
          description: When the request arrived.
        raw:
          description: The request body as received.
          example:
            lead:
              phone: +91 98765-43210
            payment:
              id: pay_29QQoUBi66xm2f
              amount: 4999
        correlation_value:
          type: string
          nullable: true
          description: >-
            The normalised value read from `correlation.payload_path`, or `null`
            when that path held no scalar.
          example: '+919876543210'
        match:
          type: string
          enum:
            - matched
            - none
            - signature_invalid
          description: >
            `matched` when a waiting execution took the request; `none` when no
            execution was waiting on that value; `signature_invalid` when the
            request carried a wrong `X-Bolna-Signature`, or none while the node
            requires one.
        execution_id:
          type: string
          nullable: true
          description: The waiting execution the request was routed to, if any.
        values:
          type: object
          additionalProperties: true
          description: >-
            The scalar values mapped through the node's `payload_map`, strings
            truncated at 1024 characters.
          example:
            payment_id: pay_29QQoUBi66xm2f
            amount: 4999
        warnings:
          type: array
          items:
            type: string
          description: >-
            One entry per `payload_map` path that was missing from the body or
            landed on an object or array, and for a correlation path that held
            no value.
    WorkflowError:
      type: object
      description: >-
        Error envelope returned by every workflow endpoint. `detail.code` is a
        stable machine-readable code; extra keys (such as `current_revision` on
        `revision_conflict`, `execution_id` on `duplicate_run`, or `issues` on
        `invalid_definition`) ride alongside it.
      required:
        - detail
      properties:
        detail:
          type: object
          additionalProperties: true
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable error code.
              example: revision_conflict
            message:
              type: string
              description: Human-readable explanation.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.