Skip to main content
POST /v1/issuer/credentials/reinstate_batch API Key

Reinstate multiple credentials

Reinstate multiple suspended credentials in a single request. Returns per-UUID results
for debugging and summary counts including reinstated, not found, already active, and
credentials that cannot be reinstated (revoked/pending).

Limit: Maximum 100 UUIDs per request.

Parameters

Name Location Type Description
X-API-Key * header string Issuer API key for authentication

* Required parameter

Request Body

application/json

Parameters for batch reinstating credentials

uuids * array[string]

UUIDs of credentials to reinstate (max 100)

Example: ["34cb9e29-0a5f-451d-85c8-b24892ef265c","50d55f79-7904-4a0f-8205-0d33c0d49481"]

Array items:

Response

200 Batch reinstatement results

Content-Type: application/json

success boolean
data object

Result of a batch operation (revoke_batch, suspend_batch, reinstate_batch). Contains per-UUID results for debugging and summary counts.

items * array[object]

Per-UUID results in submission order

Array items:

uuid * string (uuid)

The credential UUID

Example: 20ee86cc-9a3f-45df-9c64-21a3dfd5d38c

status * string

Result status for this credential

Allowed values: "already_active", "already_revoked", "already_suspended", "cannot_reinstate", "cannot_suspend", "not_found", "reinstated", "revoked", "suspended"

Example: revoked

summary * object

Aggregate counts by result status

total * integer

Total UUIDs processed

Example: 10

revoked integer

Credentials successfully revoked (revoke_batch)

Example: 8

suspended integer

Credentials successfully suspended (suspend_batch)

Example: 0

reinstated integer

Credentials successfully reinstated (reinstate_batch)

Example: 0

not_found integer

UUIDs that didn't match any credential

Example: 1

already_revoked integer

Credentials already revoked

Example: 1

already_suspended integer

Credentials already suspended

Example: 0

already_active integer

Credentials already in active state

Example: 0

cannot_suspend integer

Credentials that cannot be suspended (e.g., revoked)

Example: 0

cannot_reinstate integer

Credentials that cannot be reinstated (e.g., revoked)

Example: 0

Code Examples

import os
from aho_sdk import AhoSdk

client = AhoSdk.issuer(api_key=os.environ["AHO_API_KEY"])

result = client.credentials.reinstate_batch(
    body={
        "uuids": ["34cb9e29-0a5f-451d-85c8-b24892ef265c", "50d55f79-7904-4a0f-8205-0d33c0d49481"]
    }
)

Try It

Log in to test this endpoint directly from the documentation.

Log in