---
title: "Perform actions on Agent Credentials"
method: POST
path: "/v1/agents/{agentId}/credentials"
tags: ["Agents"]
---

# Perform actions on Agent Credentials

`POST /v1/agents/{agentId}/credentials`

Endpoint to perform actions on Agent Credentials such as refreshing them

## Path parameters

- `agentId` string, required

## Request body

- AgentCredentialsRequest
  - `action` 'SECRET_REFRESH', required — The action to perform for agent credentials. Available actions are: - SECRET_REFRESH - Refresh the client secret of the Agent

## Response `200`

Success

- AgentCredentials
  - `clientId` string
  - `clientSecret` string

## Other responses

- `400` — Wrong request parameters used
- `403` — Forbidden
- `404` — Agent not found
- `500` — Unexpected error occurred

---

[API](https://skmtc.net/maia/apis/maia-public-rest-api.md) · [All operations](https://skmtc.net/maia/apis/maia-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia/maia-public-rest-api/revisions/6239825f68eb/schema)
