Skip to main content
POST
Upload agent avatar from base64 image data

Authorizations

Authorization
string
header
required

User JWT access token issued by POST /api/auth/verify or POST /api/auth/social/verify. Routes that accept both auth modes declare api-key and bearer-jwt security schemes.

Headers

x-signature
string

HMAC-SHA256 signature: HMAC-SHA256(secretKey, timestamp + METHOD + path + body). Required for API-key authenticated requests (JWT/OAuth session auth is exempt).

x-timestamp
string

Request timestamp in epoch milliseconds. Required with x-signature for API-key auth. Rejected if drift exceeds 5 minutes.

Path Parameters

id
string
required

Body

application/json
imageData
string
required

Base64 image bytes. Data URLs such as data:image/png;base64,... are also accepted.

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB..."

mimeType
string

Required when imageData is raw base64. Ignored when imageData is a data URL.

Example:

"image/png"

Response

Uploaded agent avatar URL.

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload