Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shashank-H/gaiter-gaurd/llms.txt
Use this file to discover all available pages before exploring further.
All agent endpoints require authentication via Bearer token.
List agents
Retrieve all agents for the authenticated user.Headers
Bearer token for authentication. Format:
Bearer <jwt>Response
Returns an array of agent objects.Status codes
200- Agents retrieved successfully401- Unauthorized (missing or invalid token)500- Internal server error
Create agent
Create a new agent with an API key and service permissions.Headers
Bearer token for authentication. Format:
Bearer <jwt>Request body
Agent name (3-100 characters).
Array of service IDs this agent can access. Must contain at least one valid service ID owned by the user.
Response
Full API key. Only returned during creation. Store securely.
Status codes
201- Agent created successfully400- Validation error (invalid request body)401- Unauthorized (missing or invalid token)404- One or more service IDs not found500- Internal server error
Get agent
Retrieve a single agent by ID. Ownership is verified.Headers
Bearer token for authentication. Format:
Bearer <jwt>Path parameters
Agent ID.
Response
Unique agent identifier.
Owner user ID.
Agent name.
First 12 characters of the API key.
Whether the agent is active.
ISO 8601 timestamp of last API request.
Array of services this agent can access.
ISO 8601 timestamp of agent creation.
ISO 8601 timestamp of last update.
Status codes
200- Agent retrieved successfully400- Invalid agent ID401- Unauthorized (missing or invalid token)404- Agent not found500- Internal server error
Update agent
Update agent details (name or active status).Headers
Bearer token for authentication. Format:
Bearer <jwt>Path parameters
Agent ID.
Request body
Agent name (3-100 characters). Optional.
Whether the agent is active. Set to false to revoke access. Optional.
At least one field must be provided for update.
Response
Returns the updated agent object.Status codes
200- Agent updated successfully400- Validation error (invalid agent ID or request body)401- Unauthorized (missing or invalid token)404- Agent not found500- Internal server error
Delete agent
Delete an agent. This cascades to delete all agent-service associations.Headers
Bearer token for authentication. Format:
Bearer <jwt>Path parameters
Agent ID.
Response
Success message confirming deletion.
Status codes
200- Agent deleted successfully400- Invalid agent ID401- Unauthorized (missing or invalid token)404- Agent not found500- Internal server error
Update agent services
Update the services an agent can access. This replaces all existing service associations.Headers
Bearer token for authentication. Format:
Bearer <jwt>Path parameters
Agent ID.
Request body
Array of service IDs this agent can access. Must contain at least one valid service ID owned by the user.
Response
Success message confirming service update.
Array of services this agent can now access.
Status codes
200- Agent services updated successfully400- Validation error (invalid agent ID or request body)401- Unauthorized (missing or invalid token)404- Agent or one or more services not found500- Internal server error