Skip to content

Code pipeline runs

14 calls. Every request needs the Authorization header: see the overview.

GET /code-pipelines/processes

Every pipeline run of the tenant (unbounded; prefer runs.list({ types: ["CodePipeline"] })).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Response: CodePipelineProcess[] (200)

curl -X GET "https://api.maitento.com/code-pipelines/processes" \
-H "Authorization: $MAITENTO_AUTH"
GET /code-pipelines/processes/alive

Every pipeline run that has not finished.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Response: CodePipelineProcess[] (200)

curl -X GET "https://api.maitento.com/code-pipelines/processes/alive" \
-H "Authorization: $MAITENTO_AUTH"
GET /code-pipelines/processes/by-id/{id}

The run with this id. Throws NotFoundError when there is none.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: CodePipelineProcess (200)

curl -X GET "https://api.maitento.com/code-pipelines/processes/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH"
POST /code-pipelines/processes/by-id/{id}/answer

Answers the question a run is waiting on.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Request body: CodePipelineProcessAnswerRequest

FieldTypeRequiredDescription
requestIduuidyesThe question’s id, from the step’s humanInteractionRequests.
answerstringyesThe answer: one of the suggested answers, or your own.

Response: no body (204)

curl -X POST "https://api.maitento.com/code-pipelines/processes/by-id/<id>/answer" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"requestId":"...","answer":"..."}'
PUT /code-pipelines/processes/by-id/{id}/credentials

Replaces the run’s engine credentials (each type discriminator is sent first).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Request body: CodePipelineProcessCredentialsInput[]

Response: no body (204)

curl -X PUT "https://api.maitento.com/code-pipelines/processes/by-id/<id>/credentials" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '[{"type":"apiKey","apiKey":"...","baseUrl":"...","hostingMode":"...","modelNameOverrides":{},"boundModel":"...","contextWindowTokens":0,"awsRegion":"...","gcpProjectId":"...","gcpRegion":"...","engine":"Claude","credentialId":"...","isOwnLicense":false,"priority":0,"billingMode":"..."}]'
GET /code-pipelines/processes/by-id/{id}/diff

The run’s diff so far, or null when there is none yet.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: CodePipelineProcessDiff (200)

curl -X GET "https://api.maitento.com/code-pipelines/processes/by-id/<id>/diff" \
-H "Authorization: $MAITENTO_AUTH"
GET /code-pipelines/processes/by-id/{id}/diff/raw

The run’s raw unified diff, or null when there is none yet.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: CodePipelineProcessDiffRaw (200)

curl -X GET "https://api.maitento.com/code-pipelines/processes/by-id/<id>/diff/raw" \
-H "Authorization: $MAITENTO_AUTH"
PUT /code-pipelines/processes/by-id/{id}/kill

Kills the run.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: no body (204)

curl -X PUT "https://api.maitento.com/code-pipelines/processes/by-id/<id>/kill" \
-H "Authorization: $MAITENTO_AUTH"
POST /code-pipelines/processes/by-id/{id}/payloads/by-ids

Full tool-use and context-entry payloads by id (an unknown run answers empty lists).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Request body: CodePipelineProcessPayloadsByIdsRequest

FieldTypeRequiredDescription
toolUseIdsuuid[]The ids of the tool calls to fetch. At most 500; ask for more in further requests. Send an empty array for none.
contextEntryIdsuuid[]The ids of the transcript entries to fetch. At most 500; ask for more in further requests. Send an empty array for none.

Response: CodePipelineProcessPayloadsResponse (200)

curl -X POST "https://api.maitento.com/code-pipelines/processes/by-id/<id>/payloads/by-ids" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"toolUseIds":[],"contextEntryIds":[]}'
GET /code-pipelines/processes/by-id/{id}/payloads/steps/{stepExecutionId}

The payloads of one step execution.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes
stepExecutionIduuidyes

Response: CodePipelineProcessPayloadsResponse (200)

curl -X GET "https://api.maitento.com/code-pipelines/processes/by-id/<id>/payloads/steps/<stepExecutionId>" \
-H "Authorization: $MAITENTO_AUTH"
PUT /code-pipelines/processes/by-id/{id}/repos

Replaces the run’s repos (each type discriminator is sent first).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Request body: CodePipelineProcessRepoInput[]

Response: no body (204)

curl -X PUT "https://api.maitento.com/code-pipelines/processes/by-id/<id>/repos" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '[{"type":"http","url":"...","credentials":"...","name":"...","branchSource":"...","branchWork":"...","mcpServer":{},"resolvedCommitSha":"...","runBaseCommitSha":"...","finalCommitSha":"...","dateLastCommitUtc":"2026-01-01T00:00:00Z"}]'
PUT /code-pipelines/processes/by-id/{id}/restart

Starts a NEW run from this one’s context. Never retried.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: CodePipelineProcess (200)

curl -X PUT "https://api.maitento.com/code-pipelines/processes/by-id/<id>/restart" \
-H "Authorization: $MAITENTO_AUTH"
PUT /code-pipelines/processes/by-id/{id}/resume

Resumes a stopped run where it left off.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: no body (204)

curl -X PUT "https://api.maitento.com/code-pipelines/processes/by-id/<id>/resume" \
-H "Authorization: $MAITENTO_AUTH"
PUT /code-pipelines/processes/by-id/{id}/resume-with-prompt

Resumes a run with a continuation prompt. Returns the run as it was before the update: re-read it.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Request body: CodePipelineProcessResumeWithPromptRequest

FieldTypeRequiredDescription
continuationPromptstringyesWhat to tell the agent, for example what went wrong and how to carry on.
credentialsCodePipelineProcessCredentialsInput[] | nullNew credentials for the run’s engines, to replace the ones it started with, for example when a token has expired. Null or empty: keep the run’s credentials.
credentialStackstring | nullA credential stack (name or id) to run on from here, snapshotted now, in place of the credentials or stack the run started with. Not with credentials. Null: keep the run’s stack. Sending credentials instead moves the run off its stack and onto them.
reposCodePipelineProcessRepoInput[] | nullNew repositories, with fresh git credentials, to replace the ones the run started with, for example when a short-lived token has expired. Null or empty: keep the run’s repositories.

Response: CodePipelineProcess (200)

curl -X PUT "https://api.maitento.com/code-pipelines/processes/by-id/<id>/resume-with-prompt" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"continuationPrompt":"..."}'