---
title: "Get one API request"
description: "One request with its stored bodies, and what it is linked to: the other requests sent with the same Idempotency-Key (oldest first, the first marked original), and the events, audit log entries…"
canonical_url: "https://twominutebilling.com/help/developers/api-reference/organization/get-one-api-request"
---
# Get one API request

> One request with its stored bodies, and what it is linked to: the other requests sent with the same Idempotency-Key (oldest first, the first marked original), and the events, audit log entries…

<api-operation method="GET" path="/v1/request_logs/{id}">
<template v-slot:docs="">

One request with its stored bodies, and what it is linked to: the other requests sent with the same `Idempotency-Key` (oldest first, the first marked `original`), and the events, audit log entries and gateway calls with its trace id. Masked values read `****`; a route that returns a one-time secret stores `{"_omitted":"secret"}`; a long value or body is cut and says so (`_omitted`, `_truncated`).

## Path parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        yes
      </strong>
    </td>
    
    <td>
      The request id (<code>
        req_…
      </code>
      
      ), as in the <code>
        Request-Id
      </code>
      
       header.
    </td>
  </tr>
</tbody>
</table>

## Response

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        object
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The object type; always <code>
        request_log
      </code>
      
      . One of <code>
        request_log
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <code>
        req_…
      </code>
      
      ; the <code>
        Request-Id
      </code>
      
       header of the response.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        created_at
      </code>
    </td>
    
    <td>
      <code>
        string · ISO-8601
      </code>
    </td>
    
    <td>
      When the request log was created (ISO-8601 UTC).
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        method
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The method.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        path
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Without the query string.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        route
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        query
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        api_version
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The request log's api version. One of <code>
        v1
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        kind
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The request log's kind. One of <code>
        read
      </code>
      
      , <code>
        write
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        status
      </code>
    </td>
    
    <td>
      `integer
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        duration_ms
      </code>
    </td>
    
    <td>
      `integer
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        source
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where the request log comes from. One of <code>
        api
      </code>
      
      , <code>
        dashboard
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        api_key
      </code>
    </td>
    
    <td>
      `object
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        member
      </code>
    </td>
    
    <td>
      `object
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        business
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        livemode
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        idempotency_key
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        idempotency_outcome
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        error_type
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        trace_id
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        customer
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ip
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        user_agent
      </code>
    </td>
    
    <td>
      `string
    </td>
    
    <td>
      null`
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        request_body
      </code>
    </td>
    
    <td>
      <code>
        any
      </code>
    </td>
    
    <td>
      The JSON body as received, secrets masked.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        response_body
      </code>
    </td>
    
    <td>
      <code>
        any
      </code>
    </td>
    
    <td>
      The JSON answer, for writes and errors.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        related
      </code>
    </td>
    
    <td>
      <code>
        object
      </code>
    </td>
    
    <td>
      The related.
    </td>
  </tr>
</tbody>
</table>

## Status codes

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      The request
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        404
      </code>
    </td>
    
    <td>
      No such request log
    </td>
  </tr>
</tbody>
</table>
</template>

<template v-slot:request="">

```bash [Request]
curl "$TMBILLING_URL/v1/request_logs/req_XXXXXXXXXXXX01" \
  -H "Authorization: Bearer $TMBILLING_API_KEY"
```

</template>

<template v-slot:response="">
<code-group>

```json [200 OK]
{
  "object": "request_log",
  "id": "req_XXXXXXXXXXXX01",
  "created_at": "2026-03-14T09:30:00Z",
  "method": "POST",
  "path": "Path",
  "route": "Route",
  "query": "ada",
  "api_version": "v1",
  "kind": "read",
  "status": 1,
  "duration_ms": 1,
  "source": "api",
  "api_key": {
    "id": "3f6c1b9e-8a2d-4c5e-9f10-2b7d4e6a8c01",
    "name": "Example",
    "revoked": false
  },
  "member": {
    "id": "3f6c1b9e-8a2d-4c5e-9f10-2b7d4e6a8c01",
    "email": "maya@example.com"
  },
  "business": "biz_XXXXXXXXXXXX01",
  "livemode": "test",
  "idempotency_key": "Idempotency key",
  "idempotency_outcome": "new",
  "error_type": "Error type",
  "trace_id": "3f6c1b9e-8a2d-4c5e-9f10-2b7d4e6a8c01",
  "customer": "cus_XXXXXXXXXXXX01",
  "ip": "Ip",
  "user_agent": "User agent",
  "request_body": {},
  "response_body": {},
  "related": {
    "same_idempotency_key": [],
    "events": {},
    "audit_logs": {},
    "gateway_requests": {}
  }
}
```

```json [404 Not Found]
{
  "error": {
    "type": "invalid_request_error",
    "message": "No such request log"
  }
}
```

</code-group>
</template>
</api-operation>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
