Detected country: US
logo
API Docs
‌
‌
‌
logo

Powered by

  • Home
  • Cobalt API
  • Engagements

Engagements

3min read

Share

Get All Engagements

This endpoint retrieves a list of all engagements that belong to the organization specified in the X-Org-Token header.

HTTP Request

GET https://api.us.cobalt.io/engagements

URL Parameters

ParameterDefaultDescription
cursorN/AUsed for pagination. Example:https: //api.us.cobalt.io/engagements?cursor=eyJwYWdlIjoyLCJzaXplIjoxMH0=
sortcreated_atIf specified, returns engagements sorted in ascending order by one of these properties: created_at, end_date, start_date, state, or updated_at. To sort in descending order, use a - before the sort property. Example: https://api.us.cobalt.io/engagements?sort=-start_date.

Response Fields

FieldDescription
asset_public_idsList of the IDs of any assets associated with the returned engagement
end_dateThe ending date of the engagement. Format: Aug 25 2024
engagement_typeThe engagement type. digital_risk_assessment or secure_code_review
idA unique ID representing the engagement
methodologyEngagement methodology. Valid values depend on the engagement type
start_dateThe starting date of the engagement. Format: Aug 11 2024
statedraft, in_review, planned, live, remediation, closed, or cancelled
tagA human-friendly unique ID representing the engagement
titleThe title of the returned engagement
links.ui.urlA link to redirect an authorized user to this engagement in the Cobalt web application
curl -X GET "https://api.us.cobalt.io/engagements" \
  -H "Accept: application/vnd.cobalt.v2+json" \
  -H "Authorization: Bearer YOUR-PERSONAL-API-TOKEN" \
  -H "X-Org-Token: YOUR-V2-ORGANIZATION-TOKEN"

The above command returns JSON structured like this:

{
  "data": [
    {
      "resource": {
        "engagement_type": "secure_code_review",
        "id": "scr_BXc7VWbtrUMHE4Wak95Le",
        "tag": "#SCR26728",
        "title": "Secure Code Review - Public API",
        "methodology": "code_review",
        "state": "live",
        "start_date": "May 17 2024",
        "end_date": "May 24 2024",
        "asset_public_ids": [
          "as_A7EhhrnMZxSvfQPLqSFbE7"
        ]
      },
      "links": {
        "ui": {
          "url": "https://api.us.cobalt.io/links/eyJ0eXBlIjoiRU5HQUdFTUVOVCIsIm9yZ1NsdWciOiJtb2hyLXdhbGtlci05IiwicGVudGVzdFRhZyI6IiIsImZpbmRpbmdJZCI6IiIsImFzc2V0VGFnIjoiIiwiZW5nYWdlbWVudElkIjoiZHJhXzRCZWdtY3BIajRTUlJ1amlpUkxhdWsiLCJkYXN0VGFyZ2V0SWQiOiIiLCJkYXN0RmluZGluZ0lkIjoiIiwiZW5nYWdlbWVudEZpbmRpbmdJZCI6IiJ9"
        }
      }
    }
  ],
  "pagination": {
    "next_page": "/engagements?cursor=eyJwYWdlIjozLCJzaXplIjoxMH0=",
    "prev_page": "/engagements?cursor=eyJwYWdlIjoxLCJzaXplIjoxMH0="
  }
}

:::info Remember - you can only request engagements scoped to the organization specified in the X-Org-Token header.

:::


Get an Engagement

This endpoint retrieves a specific engagement that belongs to the organization specified in the X-Org-Token header.

HTTP Request

GET https://api.us.cobalt.io/engagements/YOUR-ENGAGEMENT-IDENTIFIER-HERE

Response Fields

The fields that are returned depend on the engagement type. This can be determined from the engagement_type field, which is common to all engagement types.

FieldEngagement Type(s)Description
activitiesDigital risk assessmentsDescription of activities performed as part of the engagement
application_detailsSecure code reviewsDescription of the application being reviewed
approachSecure code reviewsDescription of the approach the reviewer should take
asset_public_idAllList of the IDs of any assets targeted by the returned engagement
end_dateAllThe ending date of the engagement. Format: Aug 25 2024
engagement_typeAllThe engagement type. digital_risk_assessment or secure_code_review
idAllA unique ID representing the engagement
methodologyAllEngagement methodology. Valid values depend on the engagement type
objectivesAllThe objectives of the engagement, for example “Coverage of OWASP Top 10”
start_dateAllThe starting date of the engagement. Format: Aug 11 2024
stateAlldraft, in_review, planned, live, remediation, closed, or cancelled
tagAllA human-friendly unique ID representing the engagement
titleAllThe title of the returned engagement
links.ui.urlAllA link to redirect an authorized user to this engagement in the Cobalt web application

Remember - you can only request an engagement scoped to the organization specified in the X-Org-Token header.

Share