---
title: "Attest and get an agent token"
method: POST
path: "/api/v1/agents/attest"
tags: ["agents"]
---

# Attest and get an agent token

`POST /api/v1/agents/attest`

## Request

- Base URL: `https://predict.dex.mk`
- URL: `https://predict.dex.mk/api/v1/agents/attest`
- Auth: none declared

Submit the signed challenge. Returns a 30-day token for `Authorization: Bearer` on the builder signer (gasless Polymarket account setup for your address only). The attestation is a logged representation, not a legal exemption; region rules still apply.

## Request body

- object
  - `address` string, required
  - `message` string, required
  - `signature` string, required

## Response `200`

Token

- object

## Other responses

- `400`: Invalid or missing parameter; body {error, message}
- `429`: Too many requests; honour Retry-After
- `502`: Polymarket did not answer in time; retry shortly
- `503`: Agent tokens not configured on this deployment

---

[API](https://skmtc.dev/dex/apis/predictdex-api.md) · [All operations](https://skmtc.dev/dex/apis/predictdex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dex/apis/predictdex-api/revisions/34386b074c69?raw)
