Gemstones

Send Chat Message

POST /api/v1/gems/{gem_id}/chat - Send a chat message to refine gemstone scan data

Allows users to provide additional context or corrections to their gemstone scan. The AI validates the message against the original images and either updates the gemstone data or rejects contradictory requests.

Args: gem_id: ID of the gemstone to chat about request: ChatMessageRequest with user's message current_user: Authenticated user db: Database session

Returns: ChatMessageResponse with message details (same format as history)

post/api/v1/gems/{gem_id}/chat

Request

  • Base URL: https://api.gemstoneaiapp.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.gemstoneaiapp.com/api/v1/gems/{gem_id}/chat
  • Auth: HTTP bearer

Path parameters

gem_idinteger required

Request body

messagestring required

Response

Successful Response

idinteger required
user_messagestring required
ai_messagestring nullable
was_acceptedboolean required
created_atstring date-time required

Changes

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