Skip to main content
POST
/
public-api
/
til-requests
/
{request_id}
/
decision
Approve or reject a TIL request
curl --request POST \
  --url https://api.neoagent.io/public-api/til-requests/{request_id}/decision \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "acting_end_user": "<string>",
  "acting_end_user_name": "<string>",
  "client_id": "<string>",
  "note": "<string>"
}
'
{
  "data": {
    "agent_id": 123,
    "agent_name": "<string>",
    "approvers": [
      {
        "user_id": "<string>",
        "user_name": "<string>"
      }
    ],
    "comment": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "decided_by": {
      "id": "<string>",
      "name": "<string>"
    },
    "id": 123,
    "requested_for": {},
    "session_id": "<string>",
    "ticket_id": "<string>",
    "ticket_number": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "meta": {
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "timings_ms": {},
    "pagination": {
      "has_more": true,
      "next_cursor": "<string>"
    },
    "warnings": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Path Parameters

request_id
string
required

Body

application/json
action
enum<string>
required
Available options:
approve,
reject
acting_end_user
string | null

The technician resolving the request, as their stable user id (M365 AAD object id). Honored only for a platform service account: it authorizes resolving a proactive (Teams) TIL when this technician is one of its recipients, or a conversational (chat) MSP agent's TIL, and records them as the approver. Ignored for other callers.

acting_end_user_name
string | null

Display name of the resolving technician (acting_end_user), for the audit record. Honored only for a platform service account; falls back to the user id when absent.

client_id
string | null

Target tenant whose TIL request to resolve. Honored only for a platform service account; any other caller passing it gets 403. A platform caller may resolve a tenant's TIL when the acting technician (see acting_end_user) is one of its recipients, or when it belongs to that tenant's Neo Support agent. Omit to resolve in the caller's own tenant.

note
string | null

Response

Success.

data
TilRequest · object
required
meta
object
required