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

# Get a delivery with its attempts

> Returns a single delivery for a webhook subscription along with the full list of captured attempt records. Each attempt includes the request URL, method, headers and body, whether it was signed, and the response status, headers, and snippet.



## OpenAPI

````yaml /api-reference/webhooks/webhook-deliveries.yaml get /webhooks/{id}/deliveries/{deliveryId}
openapi: 3.1.0
info:
  title: Webhook Deliveries
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /webhooks/{id}/deliveries/{deliveryId}:
    get:
      tags:
        - Webhook Deliveries
      summary: Get a delivery with its attempts
      description: >-
        Returns a single delivery for a webhook subscription along with the full
        list of captured attempt records. Each attempt includes the request URL,
        method, headers and body, whether it was signed, and the response
        status, headers, and snippet.
      operationId: getWebhookDelivery
      parameters:
        - in: path
          name: id
          required: true
          schema:
            example: 550e8400-e29b-41d4-a716-446655440000
            format: uuid
            type: string
        - in: path
          name: deliveryId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    properties:
                      attempts:
                        items:
                          properties:
                            attemptNo:
                              type: number
                            durationMs:
                              type:
                                - number
                                - 'null'
                            error:
                              type:
                                - string
                                - 'null'
                            requestBody:
                              type:
                                - string
                                - 'null'
                            requestHeaders:
                              additionalProperties:
                                type: string
                              type:
                                - object
                                - 'null'
                            requestMethod:
                              type: string
                            requestUrl:
                              type: string
                            responseHeaders:
                              additionalProperties:
                                type: string
                              type:
                                - object
                                - 'null'
                            responseSnippet:
                              type:
                                - string
                                - 'null'
                            responseStatus:
                              type:
                                - number
                                - 'null'
                            sentAt:
                              type: string
                            signed:
                              type: boolean
                          required:
                            - attemptNo
                            - requestUrl
                            - requestMethod
                            - requestHeaders
                            - requestBody
                            - signed
                            - responseStatus
                            - responseHeaders
                            - responseSnippet
                            - durationMs
                            - error
                            - sentAt
                          type: object
                        type: array
                      completedAt:
                        type:
                          - string
                          - 'null'
                      createdAt:
                        type: string
                      createdBy:
                        description: >-
                          Id of the parent endpoint's creator. Null when the
                          endpoint row is gone or its creator was never
                          recorded.
                        format: uuid
                        type:
                          - string
                          - 'null'
                      durationMs:
                        type:
                          - number
                          - 'null'
                      endpointId:
                        format: uuid
                        type: string
                      eventId:
                        type: string
                      eventType:
                        type: string
                      id:
                        format: uuid
                        type: string
                      isTest:
                        type: boolean
                      lastError:
                        type:
                          - string
                          - 'null'
                      lastStatusCode:
                        type:
                          - number
                          - 'null'
                      occurredAt:
                        type: string
                      source:
                        type: string
                      status:
                        enum:
                          - pending
                          - success
                          - skipped
                          - dead
                        type: string
                    required:
                      - id
                      - endpointId
                      - eventId
                      - eventType
                      - source
                      - status
                      - attempts
                      - lastStatusCode
                      - lastError
                      - durationMs
                      - isTest
                      - occurredAt
                      - createdAt
                      - completedAt
                      - createdBy
                    type: object
                required:
                  - data
                type: object
          description: Delivery with captured attempts
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookHttpError'
          description: Webhook or delivery not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookInternalServerError'
          description: Internal Server Error
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Mobilerun from '@mobilerun/sdk';

            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.webhooks.deliveries.retrieveAttempts(
              '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
              { id: '550e8400-e29b-41d4-a716-446655440000' },
            );

            console.log(response.data);
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            response = client.webhooks.deliveries.retrieve_attempts(
                delivery_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                id="550e8400-e29b-41d4-a716-446655440000",
            )
            print(response.data)
components:
  schemas:
    ApiErrorEnvelope:
      properties:
        code:
          type: string
        details: {}
        message:
          type: string
        retryAfterSeconds:
          type: number
        traceId:
          type: string
      required:
        - code
        - message
      type: object
    WebhookHttpError:
      properties:
        code:
          $ref: '#/components/schemas/WebhookHttpErrorCode'
        details: {}
        message:
          example: webhook not found
          type: string
        traceId:
          type: string
      required:
        - code
        - message
      type: object
    WebhookInternalServerError:
      properties:
        code:
          $ref: '#/components/schemas/WebhookHttpErrorCode'
        details: {}
        message:
          type: string
        traceId:
          type: string
      required:
        - code
        - message
      type: object
    WebhookHttpErrorCode:
      enum:
        - bad_request
        - not_found
        - conflict
        - service_unavailable
        - internal_error
      type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````

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