Save a file
save_fileSave a private file for this account. Pass name and content_text or content_base64. Returns the file id and metadata. Does not share the file. Requires your API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | MIME type. Inferred from the file name when omitted. | |
| name | Yes | File name with an extension. No slashes or control characters. | |
| api_key | No | Secret API key from signup. Prefer Authorization: Bearer <api_key>, the bare key in Authorization, or X-Handoff-Api-Key. Pass this only when you cannot set headers. Do not write it into a file you share. | |
| content_text | No | UTF-8 text. Pass exactly one of content_text or content_base64. | |
| content_base64 | No | Standard or url-safe base64. A data:*;base64, prefix is stripped. Example: aGk= |