Gamma API
ProjectsIntegrations

Get a sync run

GET
/api/projects/{projectId}/integrations/runs/{jobId}

The run as its lanes โ€” models, element statuses, forms, issues, those it syncs โ€” run side by side but for the issues, which start after the models. Each lane has its state, times and error, how many of its records came to each outcome, and its stages in order, each with its own state and counts. Also the run it runs again, and the runs that ran it again. 404 for a job that is not a sync.

Who may call it: Whoever manages the project: an owner, security admin or admin of its organization, or an admin of the project. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

projectId*string

The project's id.

jobId*string

Response Body

OK.

application/json
  1. response
run*

One run of an integration's sync: its lanes, each a chain of stages.

Example Request
curl -X GET 'http://localhost:3000/api/projects/string/integrations/runs/string'
Example Response
{  "run": {    "id": "string",    "integrationId": "string",    "provider": "string",    "externalProjectName": "string",    "mode": "record",    "preview": true,    "status": "queued",    "createdById": "string",    "createdAt": "2019-08-24T14:15:22Z",    "startedAt": "2019-08-24T14:15:22Z",    "finishedAt": "2019-08-24T14:15:22Z",    "error": "string",    "rerunOfId": "string",    "reruns": [      {        "id": "string",        "status": "queued",        "createdAt": "2019-08-24T14:15:22Z"      }    ],    "failedRerun": {      "count": -9007199254740991,      "other": -9007199254740991    },    "lanes": [      {        "id": "models",        "state": "waiting",        "startedAt": "2019-08-24T14:15:22Z",        "endedAt": "2019-08-24T14:15:22Z",        "error": "string",        "reason": "notAllowed",        "narrowedTo": "inbound",        "after": "models",        "stages": [          {            "id": "prepare",            "state": "waiting",            "startedAt": "2019-08-24T14:15:22Z",            "endedAt": "2019-08-24T14:15:22Z",            "error": "string",            "counts": {              "property1": -9007199254740991,              "property2": -9007199254740991            }          }        ],        "counts": {          "property1": -9007199254740991,          "property2": -9007199254740991        }      }    ]  }}