Upload chat file

org.intentschema.communication.chat.file.upload.v1

JSON: bare · @sha256:d97f0d8a359b…
Hash: sha256:d97f0d8a359b6bd858dec9baf5bd37bd88a107478e2111992946a0d20eccb0fb

Upload a file to a channel or DM, optionally with comment.

Payload

FieldTypeDescription
target *Target
object *object
idempotency_keystring
object
FieldTypeDescription
channel_id *string
thread_idstring
file *BlobRef
commentstring

Result

FieldTypeDescription
external_id *stringProvider-assigned id.
created_at *string (date-time)
urlstring (uri)

Examples

upload PDF

{
  "target": {
    "system": "slack"
  },
  "object": {
    "channel_id": "C0123456",
    "file": {
      "url": "https://files.example.com/q3.pdf",
      "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "filename": "q3.pdf",
      "mime_type": "application/pdf"
    }
  }
}

Profiles