Get file
GET/v1/files/:file_id
Returns a file the calling end user uploaded or generated: its name, size and type, and a freshly signed download_url for its content. An expired file is 404 file_expired.
Request
Responses
- 200
- 401
- 404
- 422
- 429
- 500
Successful Response
Authentication failed: the credential is missing, malformed, expired, or revoked.
invalid_token— The access token is invalid.project_disabled— This project is not active.token_expired— The access token has expired.user_disabled— This user is not active.
The requested resource does not exist, or is not visible to the caller.
file_not_found— The requested file was not found.file_expired— The requested file has expired.
A request value failed validation; the details array names each offending field.
validation_failed— The request payload failed validation.
Either too many requests (a Retry-After header says when to retry) or the billing account is out of credits (no Retry-After — top up to continue); the code field tells the two apart.
rate_limited— Too many requests. Please slow down.
An unexpected server-side error occurred.
internal— An unexpected error occurred.