Open Context Protocol is live! 🚀 Read the launch post
conversationsUnarchive

conversationsUnarchive

Reverses conversation archival.

Details

  • Method: POST
  • Path: /conversations.unarchive
  • Operation ID: conversations_unarchive

Parameters

{
  "token": {
    "description": "Authentication token. Requires scope: `conversations:write`",
    "required": false,
    "location": "header",
    "type": "string"
  },
  "channel": {
    "description": "ID of conversation to unarchive",
    "required": false,
    "location": "formData",
    "type": "string"
  }
}

Response Schema

{
  "additionalProperties": false,
  "description": "Schema for successful response from conversations.unarchive method",
  "properties": {
    "ok": {
      "enum": [
        true
      ],
      "title": "default success response",
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ],
  "title": "conversations.unarchive success schema",
  "type": "object"
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('slack')

# Call this tool
result = await agent.call_tool('conversationsUnarchive', {
    # Add required parameters here
})