Zum Hauptinhalt springen

Request a file upload token for the conversation

POST/conversations/{conversationId}/files/
v2
POST
conversation-request-file-upload

Request

  • conversationIdstring (uuid)
    required

Responses

application/json

The upload token with additional rules describing what files can be uploaded using this token. The token can be used with POST /v2/files to upload a file that is linked with the conversation.

  • conversationIdstring (uuid)
    required
  • rulesobject
    required
    • maxSizeInKBinteger
      required
    • mimeTypesarray of string
      required
      • Array[
      • *string
      • ]
  • propertiesobject
    • imageDimensionsobject
      • maxobject
        • heightinteger
        • widthinteger
      • minobject
        • heightinteger
        • widthinteger
  • uploadTokenstring
    required
  • Usage examples

    $ curl \
    --fail \
    --location \
    -X POST \
    -d '{}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/conversations/f0f86186-0a5a-45b2-aa33-502777496347/files