Deprecated Files
Create a file (Deprecated)
Registers a new temporary file and returns a URL for uploading the content.
Registers a new temporary file. The response includes a put_url you use to upload the file content in a second request.
How to upload a file
Creating a usable file requires two steps.
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.
The response also includes a Location header with the file's reference URL: https://api.signatureapi.com/v1/files/{id}.
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.
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 a 201 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