Notifications
Retrieve notifications
Test targets
Environments
Reports
Notifications
Private locations
Test Cases
Discoveries
Notifications
Retrieve notifications
Get a list of notifications for a specific test target.
GET
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
notifications
curl --request GET \
--url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/notifications \
--header 'X-API-Key: <api-key>'
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"payload": {
"failed": true,
"context": {
"source": "github",
"issueNumber": 123,
"ref": "refs/heads/main",
"sha": "abc123def456",
"repo": "my-repo",
"owner": "repo-owner",
"triggeredBy": {
"type": "USER",
"userId": "user123"
},
"nodeId": "node-123"
},
"testReportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"type": "REPORT_EXECUTION_FINISHED",
"ack": "IN_WEB_APP"
}
]
Authorizations
Path Parameters
The ID of the test target
Response
200
application/json
List of notifications
Available options:
github
Example:
"github"
Example:
123
Example:
"refs/heads/main"
Example:
"abc123def456"
Example:
"my-repo"
Example:
"repo-owner"
Example:
"node-123"
Available options:
REPORT_EXECUTION_FINISHED
, VALIDATION_PASSED
Available options:
IN_WEB_APP
curl --request GET \
--url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/notifications \
--header 'X-API-Key: <api-key>'
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"payload": {
"failed": true,
"context": {
"source": "github",
"issueNumber": 123,
"ref": "refs/heads/main",
"sha": "abc123def456",
"repo": "my-repo",
"owner": "repo-owner",
"triggeredBy": {
"type": "USER",
"userId": "user123"
},
"nodeId": "node-123"
},
"testReportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"type": "REPORT_EXECUTION_FINISHED",
"ack": "IN_WEB_APP"
}
]