---
title: "Re-embed credentials in batch"
method: POST
path: "/ai/embed/batch"
tags: ["AI Intelligence"]
---

# Re-embed credentials in batch

`POST /ai/embed/batch`

## Request

- Base URL: `https://app.arkova.ai/api/v1`
- URL: `https://app.arkova.ai/api/v1/ai/embed/batch`
- Auth: HTTP bearer

Re-generates embeddings for up to 100 credentials owned by the caller's org in one request. Costs 1 AI credit per credential embedded.

## Request body

- object
  - `anchorIds` string[], required

## Response `200`

Batch embedding result

- object
  - `total` integer
  - `succeeded` integer
  - `failed` integer
  - `errors` object[]

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `402`: Insufficient AI credits (`insufficient_credits`) — the whole batch was refused, nothing charged
- `403`: Insufficient permissions
- `503`: Either the API is not enabled (feature flag off), or AI credit accounting could not be confirmed (`credit_system_unavailable`: the credit RPC was contended or unavailable). Nothing was charged and no embedding was kept. Retryable — honour the `Retry-After` header.

---

[API](https://skmtc.dev/arkova/apis/arkova-verification-api.md) · [All operations](https://skmtc.dev/arkova/apis/arkova-verification-api/llms.txt) · [OpenAPI document](https://skmtc.dev/arkova/apis/arkova-verification-api/revisions/a14858d1efd4?raw)
