Create a file (Deprecated)
Registers a new temporary file and returns a URL for uploading the content.
POST
Registers a new temporary file. The response includes a
put_url you use to upload the file content in a second request.
Files are temporary and expire 24 hours after creation. To store files for reuse across multiple envelopes, use the Library in your dashboard.
How to upload a file
Creating a usable file requires two steps.1
Create a file record
Send a POST request to
/v1/files. No request body is needed.The response includes:- An
idfor the new file. - A
put_urlto upload the file content. - An
expires_attimestamp indicating when the file will be deleted.
Location header with the file’s reference URL: https://api.signatureapi.com/v1/files/{id}.2
Upload the file content
Send a PUT request to the
put_url from the previous response. Set the request body to the raw binary content of your file.Upload the file as a binary stream. Multipart form uploads are not supported and will produce an invalid file.
3
Use the file URL in your envelope
After uploading, reference the file by its URL in other API calls. Use the
Location header value from step 1, or construct the URL using the pattern https://api.signatureapi.com/v1/files/{id}.For example, to use the file as the source of a document:Returns
Returns a201 Created status code on success. The response body includes the following properties:
The unique identifier of the file.
A presigned URL. Send a PUT request to this URL with the raw file content to complete the upload. This URL is temporary and should be used immediately.
The date and time when the file will expire, in format.