Launch Week 02 wrapped — explore all five launches

Get Method

GEThttps://api.confident-ai.com/v2/attack-methods/{attackMethodId}

Retrieves an attack method by id, with the parameters it takes and the values in force for your project.

GET/v2/attack-methods/{attackMethodId}
curl -X GET "https://api.confident-ai.com/v2/attack-methods/{attackMethodId}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "Prompt Injection",
    "name": "Prompt Injection",
    "description": "Embeds instructions in the input that try to override the system prompt.",
    "multiTurn": false,
    "exploitability": "LOW",
    "configurable": true,
    "parameters": {}
  },
  "link": "https://app.confident-ai.com/project/<PROJECT-ID>/threats/attacks",
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • attackMethodIdstringRequired

    The id of the attack method, as the list returns it. A method's catalog name also resolves.

Response

Get Method succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    One way of attacking the system under test, drawn from the Confident AI catalog and configured per project.

    Show 7 propertiesHide 7 properties
    • idstring

      The id of the attack method. It is the method's catalog name until this project configures it, and its generated id afterwards; both keep resolving.

    • namestring

      The name of the attack method, as the catalog spells it.

    • descriptionstring | null

      What the attack method does to the system under test.

    • multiTurnboolean

      Whether the attack plays out over a conversation rather than a single request.

    • exploitabilityenum | null

      A three-step scale, LOW to HIGH, used for how exposed a system under test is and how easily an attack method exploits it.

      Show 3 enum valuesHide 3 enum values
      • LOW
      • MEDIUM
      • HIGH
    • configurableboolean

      Whether the attack method takes parameters. Updating one that takes none is rejected.

    • parametersobject | null

  • linkstring

    This is the URL of the resource on the Confident AI platform.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI