{
  "opencollection": "1.0.0",
  "info": {
    "name": "Devin API (Cognition Labs) Attachments Sessions API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Sessions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List sessions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.devin.ai/v1/sessions",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "skip",
                "value": "",
                "type": "query"
              },
              {
                "name": "tags",
                "value": "",
                "type": "query",
                "description": "Filter sessions by tag."
              },
              {
                "name": "user_email",
                "value": "",
                "type": "query",
                "description": "Filter sessions by the creator's email address."
              }
            ]
          },
          "docs": "Lists sessions for the organization, with optional filters."
        },
        {
          "info": {
            "name": "Create a new Devin session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.devin.ai/v1/sessions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new Devin session from a natural-language prompt, optionally seeded with a playbook, snapshot, knowledge, secrets, tags, and a max ACU cap."
        },
        {
          "info": {
            "name": "Retrieve session details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.devin.ai/v1/sessions/:session_id",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the session."
              }
            ]
          },
          "docs": "Retrieves full status, message history, and structured output for a session."
        },
        {
          "info": {
            "name": "Terminate a session",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.devin.ai/v1/sessions/:session_id",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the session."
              }
            ]
          },
          "docs": "Terminates a running session. The session must not already be in an exited state."
        },
        {
          "info": {
            "name": "Update session tags",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.devin.ai/v1/sessions/:session_id/tags",
            "params": [
              {
                "name": "session_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the session."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Replaces the tag list on a session (maximum 50 tags)."
        }
      ]
    }
  ],
  "bundled": true
}