Liftbay
API referenceRunner

Exchange an Xcode Cloud handshake for a job token

POST
/v1/runner/xcode-cloud/exchange

The one-time code from the build branch plus CI_BUILD_ID. Accepted once, only for the run Liftbay started, while Apple reports it running on the pushed commit, from Apple's network.

Request Body

application/json
  1. body
buildId*string
Length1 <= length <= 64
nonce*string
Length16 <= length <= 128
ciBuildId*string
Length1 <= length <= 100
commit?string
Lengthlength <= 64

Response Body

OK

application/json
  1. response
jobToken*string
expiresAt*string
curl -X POST "https://example.com/v1/runner/xcode-cloud/exchange" \  -H "Content-Type: application/json" \  -d '{    "buildId": "string",    "nonce": "stringstringstri",    "ciBuildId": "string"  }'
{  "jobToken": "string",  "expiresAt": "string"}