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

# Retrieve debug information for a specific task

### How to use it with Tenderly

If you'd like to use the debug endpoint with Tenderly, you can make use of the debug endpoint by adding the following parameters:

* `tenderlyUsername`
* `tenderlyProjectName`

The request URL should look like this:

```
https://api.gelato.digital/tasks/status/{yourRelayTaskId}/debug?tenderlyUsername={yourUserName}&tenderlyProjectName={yourProjectName}
```

Everything will already be pre-set, all you need to do is click on "Simulate" and check what might have been the point of failure.


## OpenAPI

````yaml get /tasks/status/{taskId}/debug
openapi: 3.0.4
info:
  title: Relay API
  description: >-
    Gelato Relay API is a service that allows users and developers to get
    transactions mined fast, reliably and securely, without having to deal with
    the low-level complexities of blockchains.
  version: 1.0.12
servers:
  - url: https://api.gelato.digital
security: []
tags:
  - name: oracles
  - name: relays v2
  - name: tasks
paths:
  /tasks/status/{taskId}/debug:
    get:
      tags:
        - tasks
      summary: Retrieve debug information for a specific task
      parameters:
        - name: taskId
          in: path
          description: The ID of the task to retrieve debug information for
          required: true
          explode: true
          schema:
            type: string
        - name: tenderlyUsername
          in: query
          description: Username for Tenderly account
          required: false
          explode: true
          schema:
            type: string
        - name: tenderlyProjectName
          in: query
          description: Project name on Tenderly
          required: false
          explode: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response with debug information
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      to:
                        type: string
                      from:
                        type: string
                      calldata:
                        type: string
                      blockNumber:
                        type: number
                      gasLimit:
                        type: number
                      chainId:
                        type: number
                      taskId:
                        type: string
                  debugger:
                    type: object
                    properties:
                      tenderly:
                        type: string
        '400':
          description: Bad request if the task ID or parameters are missing or incorrect
        '404':
          description: Not found if the task ID does not exist

````