Version 1
Home
/
Notifications
/
API
Notifications v1
Notifications

List target files

Copy link

You can retrieve a list of all uploaded target files in the Sendbird application using this API.


HTTP request

Copy link
GET https://api-{application_id}.notifications.sendbird.com/v1/storage/targets_files

Parameters

Copy link

The following table lists the parameters that this action supports.

Optional
Parameter nameTypeDescription

token

string

Specifies a page token that indicates the starting index of results to retrieve. If not specified, the index is set to 0.

limit

int

Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 100)


Response

Copy link

If successful, this action returns a list of files resources in the response body. In the case of an error, an error object is returned. A detailed list of error codes is available here.

{
    "files": [
        {
            "file_key": "notification-targets.csv",
            "file_size": 1024,
            "expires_at": 1686878790,
            "uploaded_at": 1684286791
        }
    ],
    "next": "YXEZR1VVQVErEUBXWFNeF2p3FkFVVA~~"
}

List of response properties

Copy link
Property nameTypeDescription

files[]

array of objects

An array of files resources.

next

string

The value that can be used in the token parameter to retrieve the next page in the result set.