Repository navigation
Add Signals API endpoints to OpenAPI spec (FI-610) #1253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
RohithSangati
merged 9 commits into
digitalocean:main
from
sauravk-digitalocean:sauravkumar/fi-610-docs-for-signals-api-doctl-support
Oct 8, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2f1391f
Add Signals API endpoints to OpenAPI spec (FI-610)
sauravk-digitalocean a0adbbb
Replace 'GenAI agent' with 'agent' and clarify Harness Runtime Enviro…
sauravk-digitalocean b81a43e
Fix signal_type field type in create_export_request: string -> array
sauravk-digitalocean e622cc3
Fix export_download model, remove segment_id, clarify session descrip…
sauravk-digitalocean f6f31b7
Use placeholder-style download URL example for readability
sauravk-digitalocean 51cf685
Fix signal_type to array in create export example and curl sample
sauravk-digitalocean ae67f3e
Update Signals tag description: replace GenAI agent with generic cove…
sauravk-digitalocean 46c8dff
Merge remote-tracking branch 'upstream/main' into sauravkumar/fi-610-…
sauravk-digitalocean 328de26
Fix all 7 CI lint errors in Signals spec
sauravk-digitalocean File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
specification/resources/signals/examples/curl/signals_create_export.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X POST \ | ||
| -H "Content-Type: application/json" \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| -d '{"agent_id":"01a0f3d5-b58d-7c99-a743-7ca0397b7f5d","signal_type":["ExecutionFailureToolNotFound"]}' \ | ||
| "https://api.digitalocean.com/v1/signals/exports" |
5 changes: 5 additions & 0 deletions
5
specification/resources/signals/examples/curl/signals_get_consent.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X GET \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| "https://api.digitalocean.com/v1/consent/019fb3d2-8a56-72cc-8bf9-9d21510b2a99" |
5 changes: 5 additions & 0 deletions
5
specification/resources/signals/examples/curl/signals_get_export.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X GET \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| "https://api.digitalocean.com/v1/signals/exports/9f13c09c-c877-436b-9863-dcc39c9dd737" |
5 changes: 5 additions & 0 deletions
5
specification/resources/signals/examples/curl/signals_get_export_download.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X GET \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| "https://api.digitalocean.com/v1/signals/exports/9f13c09c-c877-436b-9863-dcc39c9dd737/download" |
5 changes: 5 additions & 0 deletions
5
specification/resources/signals/examples/curl/signals_get_export_options.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X GET \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| "https://api.digitalocean.com/v1/signals/exports/options" |
5 changes: 5 additions & 0 deletions
5
specification/resources/signals/examples/curl/signals_list_consents.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X GET \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| "https://api.digitalocean.com/v1/consent" |
5 changes: 5 additions & 0 deletions
5
specification/resources/signals/examples/curl/signals_list_dialogues.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X GET \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| "https://api.digitalocean.com/v1/signals/sessions/01a0f3d5-d5f1-798a-9352-2cd8f8b81e78/dialogues?limit=20" |
5 changes: 5 additions & 0 deletions
5
specification/resources/signals/examples/curl/signals_list_exports.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X GET \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| "https://api.digitalocean.com/v1/signals/exports?limit=20" |
5 changes: 5 additions & 0 deletions
5
specification/resources/signals/examples/curl/signals_list_sessions.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X GET \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| "https://api.digitalocean.com/v1/signals/agents/019fb3d2-8a56-72cc-8bf9-9d21510b2a99/sessions?limit=20" |
7 changes: 7 additions & 0 deletions
7
specification/resources/signals/examples/curl/signals_update_consent.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| lang: cURL | ||
| source: |- | ||
| curl -X PUT \ | ||
| -H "Content-Type: application/json" \ | ||
| -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ | ||
| -d '{"enabled":true}' \ | ||
| "https://api.digitalocean.com/v1/consent/019fb3d2-8a56-72cc-8bf9-9d21510b2a99" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| type: object | ||
| description: Consent details for a specific agent, including an allowed flag. | ||
| properties: | ||
| id: | ||
| type: integer | ||
| description: The unique numeric identifier for the consent record. | ||
| example: 13 | ||
| team_id: | ||
| type: integer | ||
| description: The team ID that owns this consent record. | ||
| example: 39449946 | ||
| agent_id: | ||
| type: string | ||
| format: uuid | ||
| description: The unique identifier of the agent. For Harness Runtime, this is the Environment Config ID. | ||
| example: 019fb3d2-8a56-72cc-8bf9-9d21510b2a99 | ||
| enabled: | ||
| type: boolean | ||
| description: Whether signals collection is enabled for this agent. | ||
| example: true | ||
| allowed: | ||
| type: boolean | ||
| description: >- | ||
| Whether the team is permitted to use signals for this agent. This is | ||
| determined by the platform and cannot be set by the user. | ||
| example: true | ||
| updated_at: | ||
| type: string | ||
| format: date-time | ||
| description: A time value given in ISO8601 combined date and time format. | ||
| example: "2026-08-10T10:09:25.738533Z" | ||
| required: | ||
| - id | ||
| - team_id | ||
| - agent_id | ||
| - enabled | ||
| - allowed | ||
| - updated_at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| type: object | ||
| description: A consent record indicating whether signals collection is enabled for an agent. | ||
| properties: | ||
| id: | ||
| type: integer | ||
| description: The unique numeric identifier for the consent record. | ||
| example: 13 | ||
| team_id: | ||
| type: integer | ||
| description: The team ID that owns this consent record. | ||
| example: 39449946 | ||
| agent_id: | ||
| type: string | ||
| format: uuid | ||
| description: The unique identifier of the agent. For Harness Runtime, this is the Environment Config ID. | ||
| example: 019fb3d2-8a56-72cc-8bf9-9d21510b2a99 | ||
| enabled: | ||
| type: boolean | ||
| description: Whether signals collection is enabled for this agent. | ||
| example: true | ||
| updated_at: | ||
| type: string | ||
| format: date-time | ||
| description: A time value given in ISO8601 combined date and time format. | ||
| example: "2026-08-10T10:09:25.738533Z" | ||
| required: | ||
| - id | ||
| - team_id | ||
| - agent_id | ||
| - enabled | ||
| - updated_at | ||
37 changes: 37 additions & 0 deletions
37
specification/resources/signals/models/create_export_request.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| type: object | ||
| description: Request body to create a new signals data export. | ||
| properties: | ||
| agent_id: | ||
| type: string | ||
| format: uuid | ||
| description: The agent whose data should be exported. For Harness Runtime, this is the Environment Config ID. | ||
| example: 01a0f3d5-b58d-7c99-a743-7ca0397b7f5d | ||
| signal_type: | ||
| type: array | ||
| items: | ||
| type: string | ||
| description: >- | ||
| Filter the export to only include the specified signal types. Use the | ||
| export options endpoint to list available values. | ||
| example: | ||
| - ExecutionFailureToolNotFound | ||
| session_ids: | ||
| type: array | ||
| description: Optional list of specific session IDs to include in the export. | ||
| items: | ||
| type: string | ||
| format: uuid | ||
| example: | ||
| - 01a0f3d5-d5f1-798a-9352-2cd8f8b81e78 | ||
| start_time: | ||
| type: string | ||
| format: date-time | ||
| description: Include only sessions that started at or after this timestamp. | ||
| example: "2026-09-01T00:00:00Z" | ||
| end_time: | ||
| type: string | ||
| format: date-time | ||
| description: Include only sessions that started at or before this timestamp. | ||
| example: "2026-10-01T00:00:00Z" | ||
| required: | ||
| - agent_id |
15 changes: 15 additions & 0 deletions
15
specification/resources/signals/models/export_download.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| type: object | ||
| description: A pre-signed download URL for a completed export. | ||
| properties: | ||
| download_url: | ||
| type: string | ||
| format: uri | ||
| description: A temporary pre-signed URL to download the export archive. | ||
| example: "https://example-bucket.nyc3.digitaloceanspaces.com/exports/3f2a1c4e-5b6d-4e7f-8a9b-0c1d2e3f4a5b/9f13c09c-c877-436b-9863-dcc39c9dd737.json.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=EXAMPLE" | ||
| expires_at: | ||
| type: integer | ||
| description: Unix timestamp when the download URL expires. The URL is valid for 15 minutes. | ||
| example: 1791390640 | ||
| required: | ||
| - download_url | ||
| - expires_at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| type: object | ||
| description: An export job that produces a downloadable archive of signals data. | ||
| properties: | ||
| export_id: | ||
| type: string | ||
| format: uuid | ||
| description: The unique identifier for the export job. | ||
| example: 9f13c09c-c877-436b-9863-dcc39c9dd737 | ||
| agent_id: | ||
| type: string | ||
| format: uuid | ||
| description: The agent whose data is being exported. For Harness Runtime, this is the Environment Config ID. | ||
| example: 01a0f3d5-b58d-7c99-a743-7ca0397b7f5d | ||
| status: | ||
| type: string | ||
| description: The current status of the export job. | ||
| enum: | ||
| - pending | ||
| - processing | ||
| - complete | ||
| - failed | ||
| example: complete | ||
| filters: | ||
| type: object | ||
| description: The filters applied to this export. | ||
| properties: | ||
| signal_type: | ||
| type: array | ||
| items: | ||
| type: string | ||
| description: Signal types included in the export. | ||
| example: | ||
| - ExecutionFailureToolNotFound | ||
| session_ids: | ||
| type: array | ||
| items: | ||
| type: string | ||
| description: Specific session IDs included in the export. | ||
| example: | ||
| - 01a0f3d5-d5f1-798a-9352-2cd8f8b81e78 | ||
| created_at: | ||
| type: integer | ||
| description: Unix timestamp when the export was created. | ||
| example: 1791036405 | ||
| completed_at: | ||
| type: integer | ||
| nullable: true | ||
| description: Unix timestamp when the export completed, or null if still in progress. | ||
| example: 1791036405 | ||
| expires_at: | ||
| type: integer | ||
| nullable: true | ||
| description: Unix timestamp when the export download link expires. | ||
| example: 1791641205 | ||
| error_message: | ||
| type: string | ||
| nullable: true | ||
| description: Error message if the export failed, or null on success. | ||
| example: null | ||
| required: | ||
| - export_id | ||
| - agent_id | ||
| - status | ||
| - created_at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| type: object | ||
| description: Available filter options for creating exports. | ||
| properties: | ||
| filters: | ||
| type: object | ||
| properties: | ||
| signal_type: | ||
| type: array | ||
| description: The list of valid signal type values that can be used when creating an export. | ||
| items: | ||
| type: string | ||
| example: | ||
| - DisengagementEscalation | ||
| - DisengagementNegativeStance | ||
| - DisengagementQuit | ||
| - EnvironmentExhaustionApiError | ||
| - EnvironmentExhaustionContextOverflow | ||
| - ExecutionFailureToolNotFound | ||
| - ExecutionLoopsRetry | ||
| - MisalignmentCorrection | ||
| - SatisfactionConfirmation | ||
| - SatisfactionGratitude | ||
| - SatisfactionSuccess | ||
| - StagnationRepetition | ||
| required: | ||
| - signal_type | ||
| required: | ||
| - filters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| type: object | ||
| description: A wrapper for a list of consent records. | ||
| properties: | ||
| consents: | ||
| type: array | ||
| description: A list of consent records for the team's agents. | ||
| items: | ||
| $ref: 'consent_record.yml' | ||
| required: | ||
| - consents |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| type: object | ||
| description: A session represents a conversation monitored by Signals, such as a Harness Runtime agent session or a Serverless Inference chat completion. | ||
| properties: | ||
| session_id: | ||
| type: string | ||
| format: uuid | ||
| description: The unique identifier for the session. | ||
| example: 01a0f3d5-d5f1-798a-9352-2cd8f8b81e78 | ||
| total_turns: | ||
| type: integer | ||
| description: The total number of conversation turns in this session. | ||
| example: 5 | ||
| started_at: | ||
| type: string | ||
| format: date-time | ||
| description: When the session started. | ||
| example: "2026-09-15T14:30:00Z" | ||
| duration_seconds: | ||
| type: number | ||
| description: The duration of the session in seconds. | ||
| example: 120.5 | ||
| signal_count: | ||
| type: integer | ||
| description: The number of signals detected in this session. | ||
| example: 3 | ||
| required: | ||
| - session_id |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.