Ask the person for a file by link
postkey_request_filePostkey: Makes a link for when you cannot send a file yourself: you tried postkey_begin_upload and cannot read the file or run a command, or the video is still only on their phone. A file attached to this chat goes through postkey_begin_upload first; never ask the person to upload what they already sent you. A chat file that is not in your workspace never reached you (Grok Bot only passes files up to about 10 MB): say that plainly in the same message as the link, never "inaccessible". They tap the link, pick the file, and it goes up from their phone with no sign-in. With post_id it lands on that draft by itself; call postkey_create_post first so the post exists. Without post_id it lands in the Library. Send the link as it is, on its own line, in one short sentence such as "Tap this and pick your video". The link works for 2 hours, on this profile only. When they say it is done, call postkey_get_post to see the media, or postkey_list_library. Nothing is published.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | No | The draft the file goes on. Left out: the Library only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| link | No | The link for the person: send it as it is. | |
| next | No | What to do next. | |
| post_id | No | The draft the file lands on; null: the Library. | |
| expires_at | No | When the link stops working. |