messages
post/api/v1/messages

Request

  • Base URL: https://app.lobehub.com
  • URL: https://app.lobehub.com/api/v1/messages
  • Auth: HTTP bearer

Request body

contentstring required
role'user' | 'system' | 'assistant' | 'tool' required
modelstring nullable
providerstring nullable
topicIdstring nullable
threadIdstring nullable
parentIdstring nullable
quotaIdstring nullable
agentIdstring nullable
clientIdstring nullable
metadataunknown
reasoningunknown
searchunknown
toolsunknown
traceIdstring nullable
observationIdstring nullable
filesstring[] nullable
favoriteboolean nullable

Response

Successful response

messagestring
successtrue required
timestampstring date-time required

Changes

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • breaking

      the request property type changed from no type to string null

    • breaking

      the request property type changed from no type to string null

    • breaking

      the request property type changed from no type to string null

    • breaking

      the request property type changed from no type to string null

    • breaking

      the request property type changed from no type to string null

    • breaking

      the request property type changed from no type to string null

    • breaking

      the request property type changed from no type to string null

    • breaking

      the response property const value false was removed for the status

    • breaking

      the response's property type changed from string to array for status

    • breaking

      removed the required property from the response with the status

    • warning

      added the new false enum value to the response property for the response status

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      added the required property to the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status