Get file

Redirects to a download URL for the given file.

Path Parameters
sub_key string REQUIRED

Your app's subscribe key from Admin Portal.

channel string REQUIRED

The channel ID to perform the operation on.

id string REQUIRED

PubNub-generated ID for uploaded file

name string REQUIRED

User-supplied filename

Responses
307

307 redirect response to get file presigned URL

400

One or more request parameters are invalid

Schema OPTIONAL
status integer OPTIONAL

Status code

error object OPTIONAL
source string OPTIONAL

The PubNub service from which the error originated

message string OPTIONAL

Response message

code integer OPTIONAL

Internal error code

402

The Files service is not enabled for the subkey

Schema OPTIONAL
status integer OPTIONAL

Status code

error object OPTIONAL
source string OPTIONAL

The PubNub service from which the error originated

message string OPTIONAL

Response message

code integer OPTIONAL

Internal error code

500

Internal Server Error

Schema OPTIONAL
status integer OPTIONAL

Status code

error object OPTIONAL
source string OPTIONAL

The PubNub service from which the error originated

message string OPTIONAL

Response message

code integer OPTIONAL

Internal error code

* required
sub_key*
Type: string
Your app's subscribe key from Admin Portal.
channel*
Type: string
The channel ID to perform the operation on.
id*
Type: string
PubNub-generated ID for uploaded file
name*
Type: string
User-supplied filename
status
Type: integer
Status code
Example: 400
error
Type: object
status
Type: integer
Status code
Example: 402
error
Type: object
status
Type: integer
Status code
Example: 500
error
Type: object