Skip to main content
GET
/
2
/
users
/
{id}
/
bookmarks
/
folders
Get Bookmark folders
curl --request GET \
  --url https://api.x.com/2/users/{id}/bookmarks/folders \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "1146654567674912769",
      "name": "<string>"
    }
  ],
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ],
  "meta": {
    "next_token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

The ID of the authenticated source User for whom to return results. Unique identifier of this User. The value must be the same as the authenticated user.

Example:

"2244994945"

Query Parameters

max_results
integer<int32>

The maximum number of results.

Required range: 1 <= x <= 100
pagination_token
string

This parameter is used to get the next 'page' of results. A base36 pagination token.

Minimum string length: 1

Response

The request has succeeded.

data
object[]
errors
object[]
Minimum array length: 1
meta
object