Skip to content

Files

Get a file download link

GET/v1/files/{fileId}

One file uploaded to a file_upload question, with a download link that works for 5 minutes. Call again for a fresh link. Once the response is deleted, it answers 404. See Files.

Path parameters

  • fileIdstringrequired

    The file's id. You find it in the answer, next to its apiUrl, and at the end of the file's link in an export, <app>/files/<fileId>.

Response

  • fileIdstringrequired

    The file's id.

  • submissionIdstringrequired

    The response it was uploaded with.

  • fieldIdstringrequired

    The file_upload question it answers.

  • namestringrequired

    The file's name.

  • sizenumberrequired

    The file's size in bytes.

  • typestringrequired

    The file's MIME type, as uploaded.

  • urlstringrequired

    A download link that works for 5 minutes and needs no API key. It stops working when it expires or the response is deleted.

  • expiresAtnumberrequired

    When url stops working, in milliseconds since the epoch.

Errors answer with a status and the error shape.