prompts-ddd
Admin - Prompts

Track Usage

Track usage of a prompt (called by services after using a prompt).

post/api/v1/intelligence/prompts/track-usage

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/intelligence/prompts/track-usage
  • Auth: none declared

Headers

Authorizationstring

Request body

prompt_idstring required

Prompt ID

company_idinteger nullable
asset_idinteger nullable
model_usedstring nullable
input_dataobject nullable
output_dataobject nullable
tokens_usedinteger nullable
response_time_msinteger nullable
was_successfulboolean
error_messagestring nullable

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

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