# KYA Brasil – Renew Agent Credential

> KYA Brasil – Renew Agent Credential is a paid API for AI agents from kya-br-agents.marcelfons.workers.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-31).

Re-issues a Brazilian AI agent credential for 90 more days, requiring the company's e-CNPJ to be valid and the company to be ATIVA at Receita Federal.

## Facts

- Endpoint: POST https://kya-br-agents.marcelfons.workers.dev/v1/agents/:id/renew?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kya-brasil-renew-agent-credential-bbe3b7f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gVw02itilOw_hiT-3JaQ4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability kya-brasil-renew-agent-credential-bbe3b7f9 -d '<json body>'
```

Example prompt: My KYA Brasil agent credential is about to expire — please renew it for another 90 days using the credential ID cred_abc123, our e-CNPJ is still active and the company is ATIVA at Receita Federal.

## When to prefer this

Use this endpoint when an existing KYA Brasil agent credential is approaching or has recently reached its 90-day expiry and the underlying Brazilian company remains ATIVA at Receita Federal with a valid e-CNPJ. This is the correct renewal path (not re-registration) for maintaining continuity of an agent's authorization without creating a new credential from scratch.

## Known failure modes

- Company is not ATIVA at Receita Federal — renewal rejected
- e-CNPJ is revoked or expired — signing challenge fails
- Invalid or unknown credential_id — 404 not found
- Credential already expired beyond renewal window — cannot renew
- Payment of 0.1 USDC not completed via x402 protocol — 402 Payment Required
- Malformed POST body or missing required fields — 400 Bad Request

## How this service works

Re-issue the credential for 90 more days. The company signs the renewal challenge with an e-CNPJ in force (not revoked); the company must still be ATIVA at the Receita.

## Output

Returns a renewed credential object with an updated validity window of 90 days from the renewal date, along with the credential status confirming re-issuance. The company must be ATIVA at Receita Federal and must sign the renewal challenge with a non-revoked e-CNPJ.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "credential_id returned by POST /v1/agents"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kya-brasil-renew-agent-credential-bbe3b7f9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kya-br-agents.marcelfons.workers.dev](https://www.zero.xyz/host/kya-br-agents.marcelfons.workers.dev/llms.txt)
