Generated by API Evangelist
Written by API Evangelist tooling for GitLab's API. It is a proposal applied on top of the contract, not a document GitLab publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for GitLab REST Ai agent sessions API
version: 1.0.0
extends: openapi/gitlab-ai-agent-sessions-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-23'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 3
- target: $.paths['/api/v4/projects/{id}/ai_agent/sessions'].get
update:
x-apievangelist-phrasing:
intent: List a project's external agent sessions
effect: read
questions:
- Which AI agent sessions have run in my project?
- Can I filter a project's agent sessions by agent type or status?
instructions:
- text: List external agent sessions in project {id}.
slots:
id: path.id
- text: Show {agent_type} agent sessions in project {id} with status {status}.
slots:
agent_type: query.agent_type
id: path.id
status: query.status
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/ai_agent/sessions'].post
update:
x-apievangelist-phrasing:
intent: Start an external agent session in a project
effect: write
questions:
- How do I start an AI agent session in a project?
- Can I create a session for a registered agent identity and goal?
instructions:
- text: Create a {agent_type} agent session in project {id} for identity {agent_identity_id} synced as {sync_type}.
slots:
agent_type: requestBody.agent_type
id: path.id
agent_identity_id: requestBody.agent_identity_id
sync_type: requestBody.sync_type
- text: Start an agent session in project {id} with goal {goal}.
slots:
id: path.id
goal: requestBody.goal
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/ai_agent/sessions/{session_id}'].patch
update:
x-apievangelist-phrasing:
intent: Complete or fail an external agent session
effect: write
questions:
- How do I mark an external agent session as completed or failed?
- Can I attach a transcript SHA-256 when ending a session?
instructions:
- text: Mark session {session_id} in project {id} as {status}.
slots:
session_id: path.session_id
id: path.id
status: requestBody.status
- text: Complete session {session_id} in project {id} with transcript SHA-256 {jsonl_sha256}.
slots:
session_id: path.session_id
id: path.id
jsonl_sha256: requestBody.jsonl_sha256
method: generated
generated: '2026-11-23'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.