Chats v2

Send a gift (v2)

post/v2/chats/{id}/send-gift

Request

  • Base URL
    https://api.miaai.chat (the document declares no server; this is the origin it was published from)
  • URL
    https://api.miaai.chat/v2/chats/{id}/send-gift
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

clientIdstring

Client-provided message ID for idempotency

giftIdstring required

Gift ID

textstring

Optional user text

offerSessionIdstring

Optional offer session id for analytics correlation

Example request

{
  "clientId": "550e8400-e29b-41d4-a716-446655440000",
  "giftId": "uuid",
  "offerSessionId": "b1b3d2f0-5a4c-4e2f-9a1b-1234567890ab"
}

Response

balancenumber required

User coin balance after operation

Changes

No recorded changes to this operation across all 1 revision of this API.