Get a document upload link
hip_get_upload_targetGet a short-lived upload URL for a file the person already has (a PDF, Word file or image). Use this for an existing file; use hip_add_text_document for text you wrote with the person, or hip_set_letter for a letter in a handwriting-style font. Needs a job_handle from hip_create_job. Returns upload_url and required_headers: PUT the file's exact bytes there, then list it in hip_update_job's files. Send file_size, the file's exact size in bytes: the URL is signed for that size. File type and size limits are the same as the website.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_handle": "<job_handle>",
"filename": "<filename>",
"file_size": "<file_size>"
},
"name": "hip_get_upload_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | the document's file name with its extension, e.g. lease.pdf. The extension decides how it is read: PDF, Word (.doc or .docx), text, RTF, ODT, or an image (JPG, PNG, TIFF, BMP, GIF or WebP). Use the same filename in hip_update_job's files. | |
| file_size | Yes | the file's exact size in bytes; the PUT must send exactly this many | |
| job_handle | Yes | the job_handle that hip_create_job returned (job_ followed by 32 hex characters). Only the API key that created the job can use it. | |
| content_type | No | optional: the file's MIME type, e.g. application/pdf. The upload URL is signed for it, so the PUT must send this exact Content-Type header (the result's required_headers). Left out, or not a plain type/subtype: application/octet-stream. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||