Skip to navigation

Requests

Approve or decline access employees ask for beyond their Group

When an employee’s AI client calls a tool their Group doesn’t grant, the call fails and a request lands in Requests with their reason. You approve or decline it here.

TabHoldsPermission to review
ToolsRequests for a Connector’s toolsManage tool access (manage_tool_access)
SkillsSkills submitted for publishingManage skills (manage_skills)

Review tool requests

Each request shows the employee, tools, reason, and time. Hover the name to see their Groups.

  • Approve for 1 hour, 1 day, 1 week, or no limit. Timed approvals move to Expired when they lapse.
  • Deny with an optional note.
  • Revoke an approval still in force.

Filter by status or employee, search, or select multiple rows to act on them together. Every decision is recorded in the Audit trail.

To get requests in your own system, add an endpoint under Settings → Organization → Tool access requests → Request webhooks. It receives TOOL_ACCESS_REQUEST_CREATED when an employee submits a request and TOOL_ACCESS_REQUEST_REVIEWED when it’s approved or denied.

If several people in one Group request the same tool, widen the Group in Groups and access.

Review tool requests with the API

The same queue is available over the API, so you can route requests into the approval system you already run, such as a ticketing workflow or an on-call bot, instead of checking the console. It needs an API key with the management:all scope, which every key generated in the console has.

GET /api/v1/tool-access-requests/ lists requests with pending ones first, oldest first within each status. Filter with status, registered_user_id, or search, which matches the same fields as the console search. status=approved returns only approvals still in force, and status=expired returns the ones that have lapsed.

curl "https://ah-api.merge.dev/api/v1/tool-access-requests/?status=pending" \
-H "Authorization: Bearer $MERGE_API_KEY"

To decide a request, PATCH /api/v1/tool-access-requests/{request_id}/ with a status. approved and denied apply to a pending request, and revoked applies to an approved one. Any other transition returns 400. An approval takes at most one of expires_at, expires_in_seconds, or permanent: true. Send none and the approval reuses the employee’s requested_expires_at exactly as submitted, or grants permanent access if that is what they asked for. That timestamp was fixed when the request was filed, so a one-hour request approved two hours later is approved already expired. To grant a duration that starts at approval, send expires_in_seconds.

review_request.py
import os
import requests
request_id = "7c1e9b4a-2f3d-4e8a-9b6c-0d5f2a1e3c47"
response = requests.patch(
f"https://ah-api.merge.dev/api/v1/tool-access-requests/{request_id}/",
headers={"Authorization": f"Bearer {os.environ['MERGE_API_KEY']}"},
json={
"status": "approved",
"expires_in_seconds": 86400,
"decision_note": "Approved for the Q4 close, renew if you still need it.",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["approved_expires_at"])

A decision made through the API has no dashboard user behind it, so reviewed_by is null and the Audit trail attributes the decision to the API key. The full request and response shapes are in the API reference.

Review skill submissions

The Skills tab lists pending submissions with author, description, and Connectors used.

  • Approve publishes the skill to the organization or the Groups the author chose.
  • Reject, with an optional reason, returns it to the author.

See Reviewing submissions for what to check.