> This page is for Workforce.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Get tool access request

GET https://ah-api.merge.dev/api/v1/tool-access-requests/{request_id}/

Retrieve a single tool access request by ID.

Reference: https://docs.merge.dev/merge-workforce/agent-handler/tool-access-requests/tool-access-requests-retrieve

## Authentication

- `Authorization` header (bearer token, required) — Token-based authentication with required prefix "Bearer"

## Request

### Path parameters

- `request_id` (string, required)

## Response

### 200

- `id` (string, required)
- `registered_user` (ToolAccessRequestRegisteredUser, required) — The employee who filed the request.
- `tool_pack` (ToolAccessRequestToolPack, required, nullable) — The tool pack the request was filed from.
- `reason` (string, required)
- `reviewed_by` (ToolAccessRequestReviewer, required, nullable) — The dashboard user who decided the request.
- `created_at` (datetime, required)
- `modified_at` (datetime, required)
- `status` (enum, optional)
  - Allowed values: `pending`, `approved`, `denied`, `revoked`, `canceled`
- `requested_tool_slugs` (list of string, optional)
- `requested_expires_at` (datetime, optional, nullable) — Requested expiration. Null means permanent access was requested.
- `approved_tool_slugs` (list of string, optional)
- `approved_expires_at` (datetime, optional, nullable) — Approved expiration. Null means permanent access.
- `decision_note` (string, optional)
- `approved_at` (datetime, optional, nullable)
- `denied_at` (datetime, optional, nullable)
- `revoked_at` (datetime, optional, nullable)
- `canceled_at` (datetime, optional, nullable)

## Types

### ToolAccessRequestRegisteredUser

The employee who filed the request.

- `id` (string, required)
- `origin_id` (string, required)
- `name` (string, required)

### ToolAccessRequestToolPack

The tool pack the request was filed from.

- `id` (string, required)
- `name` (string, required)

### ToolAccessRequestReviewer

The dashboard user who decided the request.

- `id` (string, required)
- `email` (string, required)
- `name` (string, required)

## Examples

**Response**

```json
{
  "id": "0c5e8f7a-3b2d-4f61-8e9a-7d4c1b2a3f50",
  "registered_user": {
    "id": "9a7b6c5d-4e3f-4a2b-8c1d-0e9f8a7b6c5d",
    "origin_id": "00u1abcd2EFGH3ijk4l5",
    "name": "Jane Doe"
  },
  "tool_pack": {
    "id": "1d8b6f4a-1b3e-4f9b-9d3a-3a8e8b9c0d1f",
    "name": "Engineering"
  },
  "reason": "Triage bug ticket 123",
  "reviewed_by": null,
  "created_at": "2026-10-30T19:58:12Z",
  "modified_at": "2026-10-30T20:02:00Z",
  "status": "approved",
  "requested_tool_slugs": [
    "jira__create_issue"
  ],
  "requested_expires_at": "2026-11-06T00:00:00Z",
  "approved_tool_slugs": [
    "jira__create_issue"
  ],
  "approved_expires_at": "2026-11-06T00:00:00Z",
  "decision_note": "Approved for the incident.",
  "approved_at": "2026-10-30T20:02:00Z",
  "denied_at": null,
  "revoked_at": null,
  "canceled_at": null
}
```

**SDK Code**

```python Approved request
import requests

url = "https://ah-api.merge.dev/api/v1/tool-access-requests/request_id/"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Approved request
const url = 'https://ah-api.merge.dev/api/v1/tool-access-requests/request_id/';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Approved request
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://ah-api.merge.dev/api/v1/tool-access-requests/request_id/"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Approved request
require 'uri'
require 'net/http'

url = URI("https://ah-api.merge.dev/api/v1/tool-access-requests/request_id/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Approved request
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://ah-api.merge.dev/api/v1/tool-access-requests/request_id/")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Approved request
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://ah-api.merge.dev/api/v1/tool-access-requests/request_id/', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Approved request
using RestSharp;

var client = new RestClient("https://ah-api.merge.dev/api/v1/tool-access-requests/request_id/");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Approved request
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://ah-api.merge.dev/api/v1/tool-access-requests/request_id/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```