Skip to main content
GET
/
accounts
/
{account_id}
/
shared-links
List shared links
curl --request GET \
  --url https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "links": [
      {
        "id": "link-uuid-1",
        "account_id": "account-uuid",
        "name": "Q1 2024 Portfolio",
        "short_code": "abc123xy",
        "short_url": "https://www.useroulette.com/s/abc123xy",
        "password_protected": true,
        "is_active": true,
        "view_count": 42,
        "created_at": "2024-01-01T00:00:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 20,
      "total": 5,
      "total_pages": 1
    }
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Generate keys from your account settings.

Include in header: Authorization: Bearer YOUR_API_KEY

Path Parameters

account_id
string<uuid>
required

The unique identifier of the account/team

Query Parameters

page
integer
default:1

Page number for pagination (starts at 1)

Required range: x >= 1
limit
integer
default:20

Number of items per page (max 100)

Required range: 1 <= x <= 100
sort_order
enum<string>
default:desc

Sort direction

Available options:
asc,
desc
sort_by
enum<string>
default:created_at
Available options:
created_at,
updated_at,
name
is_active
boolean

Filter by active status

Response

List of shared links

success
boolean
required
data
object
required