Skip to Content
Torque Lift Docs
Pull requests

Get one pull request

GET
/v1/pull_requests/{id}

One of the pull requests Torque Lift opened in the repo, by its action log ID.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

A secret key, tl_live_...

Path Parameters

id*Id
Match^[a-z]{2,8}-\d{4,}$

Header Parameters

Torque-Tenant?|

An operator key's tenant to read; refused with a tenant's key.

Torque-Version?string|null

Response Body

Successful Response

application/json
  1. response

Every action log record of one thing (a PR, a recommendation, an experiment, an incident), newest state on top. details holds the newest value of each field any of its records set; the action log holds IDs, counts and statistics, never user data.

object*Object
Value in"pull_request""recommendation""experiment""incident"
id*Id
state*State
created*Created
updated*Updated
parent_id*string|null
details*
history*array<>
Example Request
curl -X GET 'https://api.torquelift.ai/v1/pull_requests/string'
Example Response
{  "object": "pull_request",  "id": "string",  "state": "string",  "created": "string",  "updated": "string",  "parent_id": "string",  "details": {},  "history": [    {      "state": "string",      "ts": "string",      "actor": "string"    }  ]}