> Minded’s MCP server is https://mcp.minded.com: connect an agent to it with a Minded API key to hand work to Minded.

# agents.addTask

`POST https://app.minded.com/v1/agents/{agent}/tasks`

```json
{
  "operationId": "agents.addTask",
  "parameters": [
    {
      "name": "agent",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "trigger": {
              "type": "string",
              "minLength": 1
            },
            "data": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            },
            "clientId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "required": [
            "data",
            "clientId"
          ]
        }
      }
    }
  },
  "responses": {
    "202": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "chatId": {
                "type": "string",
                "minLength": 1
              },
              "task": {
                "type": "string"
              },
              "repeat": {
                "type": "boolean"
              }
            },
            "required": [
              "chatId",
              "task",
              "repeat"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "default": {
      "description": "Refused: the HTTP status says why (400 the input, 401 the key or token, 402 no usage, 403 access, a hook or the role, 404 not there, 409 a conflict, 429 too many calls)",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "code",
              "status",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "A stable name for the refusal, e.g. FORBIDDEN"
              },
              "status": {
                "type": "integer"
              },
              "message": {
                "type": "string",
                "description": "What happened, in plain words, ready to show the member"
              },
              "data": {
                "type": "object",
                "description": "When there is one: billingUrl, usageLimitsUrl, or retryAfter (seconds)"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "servers": [
    {
      "url": "https://app.minded.com/v1"
    }
  ],
  "securitySchemes": {
    "apiKey": {
      "type": "http",
      "scheme": "bearer",
      "description": "A member’s Minded API key"
    }
  }
}
```
