How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitLab GitLab Duo workflows API

Use this API to create and manage [flows](https://docs.gitlab.com/user/duo_agent_platform/flows/) in the[GitLab Duo Agent Platform](https://docs.gitlab.com/user/duo_agent_platform/).Flows are combinations of AI agents that work together to complete developer tasks,such as fixing bugs, writing code, or resolving vulnerabilities.

GitLab GitLab Duo workflows API is one of 189 APIs that GitLab publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 16 JSON Schema definitions.

Tagged areas include GitLab Duo workflows. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, rate-limit docs, an AsyncAPI specification, and 16 JSON Schemas.

This API exposes 27 operations across 24 paths, and defines 24 schemas. It is described by OpenAPI 3.2.0, at version 19.6.

Requests are made against a single base URL, https://{hostname}.

27 operations 24 paths 24 schemas 10 GET1 PATCH15 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
19.6
Base URL
https://gitlab.com/api/v4
Authentication
HTTP Bearer, OAuth 2.0, API Key
Terms of Service
Resource Areas
1

Authentication & Security 3

GitLab GitLab Duo workflows API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (http). It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 9 scopes. An API key is passed in the header as PRIVATE-TOKEN (apiKey). By default, every request must be authenticated.

Paths & Operations 27

Across 24 paths, the API surfaces 27 operations — 10 GET, 1 PATCH, 15 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

GitLab Duo workflows 27

Use this API to create and manage flows in the GitLab Duo Agent Platform. Flows are combinations of AI agents that work together to complete developer tasks, such as fixing bugs,…

POST
/api/v4/ai/duo_workflows/workflows/{id}/audit_events
Ingest AI audit events from Duo Workflow Service
postApiV4AiDuoWorkflowsWorkflowsIdAuditEvents 1 param body → 202400401403404
POST
/api/v4/ai/duo_workflows/tools/risk_assessment/results
Submit risk assessment results for a merge request
postApiV4AiDuoWorkflowsToolsRiskAssessmentResults body → 204400401403404
POST
/api/v4/ai/duo_workflows/tools/risk_classification/resultsdeprecated
Submit risk assessment results for a merge request
postApiV4AiDuoWorkflowsToolsRiskClassificationResults body → 204400401403404
POST
/api/v4/ai/duo_workflows/code_review/add_comments
Add code review comments to a merge request
postApiV4AiDuoWorkflowsCodeReviewAddComments body → 200400401403404
GET
/api/v4/ai/duo_workflows/code_review/custom_instructions
Fetch the Duo Code Review custom instructions for a merge request
getApiV4AiDuoWorkflowsCodeReviewCustomInstructions 2 params → 200400401403404
POST
/api/v4/ai/duo_workflows/agent_workflows
Create workflow persistence (agent-initiated, limited privileges)
postApiV4AiDuoWorkflowsAgentWorkflows body → 201400401403404
POST
/api/v4/ai/duo_workflows/revoke_token
Revoke aiworkflows token
postApiV4AiDuoWorkflowsRevokeToken body → 200400401403422
GET
/api/v4/ai/duo_workflows/workflows/{id}
Get workflow details
getApiV4AiDuoWorkflowsWorkflowsId 1 param → 200400401403404
PATCH
/api/v4/ai/duo_workflows/workflows/{id}
Update the workflow status
patchApiV4AiDuoWorkflowsWorkflowsId 1 param body → 200400401403404
POST
/api/v4/ai/duo_workflows/workflows/{id}/checkpoints
Create workflow checkpoint
postApiV4AiDuoWorkflowsWorkflowsIdCheckpoints 1 param body → 201400401403404
GET
/api/v4/ai/duo_workflows/workflows/{id}/checkpoints
List all workflow checkpoints
getApiV4AiDuoWorkflowsWorkflowsIdCheckpoints 4 params → 200400401403404
GET
/api/v4/ai/duo_workflows/workflows/{id}/checkpoints/by_thread_ts
Get a workflow checkpoint reconstructed from incremental blobs
getApiV4AiDuoWorkflowsWorkflowsIdCheckpointsByThreadTs 3 params → 200400401403404
GET
/api/v4/ai/duo_workflows/workflows/{id}/checkpoints/{checkpoint_id}
Get details on a workflow checkpoint
getApiV4AiDuoWorkflowsWorkflowsIdCheckpointsCheckpointId 3 params → 200400401403404
POST
/api/v4/ai/duo_workflows/workflows/{id}/checkpoint_writes_batch
Create multiple workflow checkpoint writes
postApiV4AiDuoWorkflowsWorkflowsIdCheckpointWritesBatch 1 param body → 200400401403404
POST
/api/v4/ai/duo_workflows/workflows/{id}/events
Create workflow event
postApiV4AiDuoWorkflowsWorkflowsIdEvents 1 param body → 201400401403404
GET
/api/v4/ai/duo_workflows/workflows/{id}/events
List all workflow events
getApiV4AiDuoWorkflowsWorkflowsIdEvents 1 param → 200400401403404
PUT
/api/v4/ai/duo_workflows/workflows/{id}/events/{event_id}
Update workflow event
putApiV4AiDuoWorkflowsWorkflowsIdEventsEventId 2 params body → 200400401403404
POST
/api/v4/ai/duo_workflows/direct_access
Connection details for accessing Duo Agent Platform Service directly
postApiV4AiDuoWorkflowsDirectAccess body → 201401403404429400
GET
/api/v4/ai/duo_workflows/list_tools
List Duo Agent Platform tools
getApiV4AiDuoWorkflowsListTools 1 param → 200401403404429400
GET
/api/v4/ai/duo_workflows/ws
Get Duo Workflows WebSocket connection details
getApiV4AiDuoWorkflowsWs 2 params → 200401403404400
GET
/api/v4/ai/duo_workflows/workflows/{workflow_id}/trace.jsonl
Get workflow trace as JSONL
getApiV4AiDuoWorkflowsWorkflowsWorkflowIdTraceJsonl 3 params → 200401403404400
POST
/api/v4/ai/duo_workflows/workflows
Create a flow
postApiV4AiDuoWorkflowsWorkflows body → 201400401403404
GET
/api/v4/ai/duo_workflows/workflows/agent_privileges
List all agent privileges
getApiV4AiDuoWorkflowsWorkflowsAgentPrivileges → 200401
POST
/api/v4/ai/duo_workflows/workflows/{workflow_id}/execute
Request Duo Workflows server-side execution connection details
postApiV4AiDuoWorkflowsWorkflowsWorkflowIdExecute 1 param body → 200401403404429400
POST
/api/v4/ai/duo_workflows/workflows/{workflow_id}/resume
Resume a paused workflow
postApiV4AiDuoWorkflowsWorkflowsWorkflowIdResume 1 param body → 201400401403404422
POST
/api/v4/ai/duo_workflows/workflows/{workflow_id}/restart
Restart a failed or stopped workflow as a new session
postApiV4AiDuoWorkflowsWorkflowsWorkflowIdRestart 1 param → 201400401403404409422
POST
/api/v4/projects/{id}/merge_requests/{merge_request_iid}/suggested_reviewers
Set the AI-recommended reviewers for a merge request
postApiV4ProjectsIdMergeRequestsMergeRequestIidSuggestedReviewers 2 params body → 201400401403404429

Schemas 24

The contract defines 24 schemas that model the data the API accepts and returns. The most detailed are APIEntitiesAiDuoWorkflowsWorkflow (20 properties), postApiV4AiDuoWorkflowsWorkflowsRequest (17 properties), postApiV4AiDuoWorkflowsAgentWorkflowsRequest (14 properties), postApiV4AiDuoWorkflowsWorkflowsIdCheckpointsRequest (11 properties). Each schema is shown below with its type and property counts.

APIEntitiesAiDuoWorkflowsCheckpoint
object
9 properties
postApiV4AiDuoWorkflowsWorkflowsWorkflowIdExecuteRequest
object
7 properties
postApiV4AiDuoWorkflowsAgentWorkflowsRequest
object
14 properties
postApiV4AiDuoWorkflowsWorkflowsIdCheckpointsRequest
object
11 properties 2 required
postApiV4AiDuoWorkflowsWorkflowsIdEventsRequest
object
3 properties 2 required
APIEntitiesAiDuoWorkflowsBasicCheckpoint
object
4 properties
APIEntitiesUserBasic
object
10 properties
postApiV4AiDuoWorkflowsToolsRiskClassificationResultsRequest
object
6 properties 5 required
APIEntitiesAiDuoWorkflowsWorkflow
object
20 properties
APIEntitiesCustomAttribute
object
2 properties
postApiV4AiDuoWorkflowsToolsRiskAssessmentResultsRequest
object
6 properties 5 required
postApiV4AiDuoWorkflowsWorkflowsWorkflowIdResumeRequest
object
2 properties 1 required
postApiV4AiDuoWorkflowsWorkflowsIdCheckpointWritesBatchRequest
object
2 properties 2 required
postApiV4AiDuoWorkflowsWorkflowsRequest
object
17 properties
patchApiV4AiDuoWorkflowsWorkflowsIdRequest
object
2 properties 1 required
postApiV4AiDuoWorkflowsDirectAccessRequest
object
3 properties
postApiV4AiDuoWorkflowsCodeReviewAddCommentsRequest
object
4 properties 3 required
postApiV4ProjectsIdMergeRequestsMergeRequestIidSuggestedReviewersRequest
object
1 property 1 required
APIEntitiesAiSuggestedReviewer
object
4 properties
postApiV4AiDuoWorkflowsRevokeTokenRequest
object
1 property 1 required
APIEntitiesAiDuoWorkflowsEvent
object
5 properties
putApiV4AiDuoWorkflowsWorkflowsIdEventsEventIdRequest
object
1 property 1 required
postApiV4AiDuoWorkflowsWorkflowsIdAuditEventsRequest
object
1 property 1 required
APIEntitiesAiDuoWorkflowsCheckpointWrite
object
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitlab-gitlab-duo-workflows-api-openapi.yml Raw ↑

Other APIs GitLab publishes across the network.

GitLab Orbit gRPC API
GitLab GraphQL API
GitLab Applications API
GitLab Authorization API
GitLab Broadcast Messages API
GitLab Groups API
GitLab Metadata API
GitLab Project Webhooks API
GitLab Projects API
GitLab Tokens API
GitLab User Info API
GitLab Webhook Configuration API
Where this information came from

This is an independent, third-party profile of GitLab GitLab Duo workflows API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.