Skip to content

Agents

AI agents connected through the MCP server (OAuth). The dashboard approves and disconnects them; agents use https://api.marsial.dev/mcp.

GET/v1/oauth/requests/{id}

Dashboard only. The id comes from the request parameter of the consent page; requests last 10 minutes.

Parameters

  • idstringrequired

Response 200

data
  • clientNamestringrequired

    The name the agent registered with.

  • redirectHoststringrequired

    Where the user goes back to after deciding.

  • workspaceNamestringrequired
Terminal window
curl "https://api.marsial.dev/v1/oauth/requests/authz_…" \
-H "Authorization: Bearer $MARSIAL_API_KEY"
POST/v1/oauth/requests/{id}/approve

Dashboard only. The agent acts as the caller, with their role, until disconnected.

Parameters

  • idstringrequired

Response 200

data
  • redirectTostringrequired

    Send the browser here: the agent gets a code or an error.

Terminal window
curl -X POST "https://api.marsial.dev/v1/oauth/requests/authz_…/approve" \
-H "Authorization: Bearer $MARSIAL_API_KEY"
POST/v1/oauth/requests/{id}/deny

Dashboard only.

Parameters

  • idstringrequired

Response 200

data
  • redirectTostringrequired

    Send the browser here: the agent gets a code or an error.

Terminal window
curl -X POST "https://api.marsial.dev/v1/oauth/requests/authz_…/deny" \
-H "Authorization: Bearer $MARSIAL_API_KEY"
GET/v1/oauth/grants

Dashboard only.

Response 200

data []
  • idstringrequired
  • clientNamestringrequired
  • createdAtstring (date-time)required
  • lastUsedAtstring (date-time)

    The last day the agent called Marsial.

  • yoursbooleanrequired

    Whether the caller let it in.

Terminal window
curl "https://api.marsial.dev/v1/oauth/grants" \
-H "Authorization: Bearer $MARSIAL_API_KEY"
DELETE/v1/oauth/grants/{id}

Dashboard only. Its tokens stop working at once. Members disconnect their own; owners and admins any.

Parameters

  • idstringrequired

Response 204

No content

Terminal window
curl -X DELETE "https://api.marsial.dev/v1/oauth/grants/grt_5k2j8h" \
-H "Authorization: Bearer $MARSIAL_API_KEY"

© 2026 Marsial by TWOFACES ·marsial.dev ·Dashboard ·soporte@twofacesco.com