DEVELOPERS

Loops API Docs

Full API Reference
GET/api/v1/account/info/self Reference

Account Info

Returns the account belonging to the authenticated access token. Use it to confirm a token is valid and to load the current user's profile.

Authentication

Requires a bearer token with the read scope.

Query parameters

This endpoint takes no query parameters.

Returns

An Account resource.

Request

cURL
curl https://loops.video/api/v1/account/info/self \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Responses

{
  "data": {
    "id": "1",
    "name": "dansup",
    "avatar": "https://loopsusercontent.com/avatars/1/y6i8g7330.jpg",
    "username": "dansup",
    "is_owner": true,
    "local": true,
    "bio": "Currently building @pixelfed, @loops, @supapp, @fedidb, and more.",
    "post_count": 96,
    "follower_count": 3610,
    "following_count": 83,
    "url": "https://loops.video/@dansup",
    "remote_url": null,
    "is_blocking": null,
    "manually_approves_followers": false,
    "links": [
      {
        "url": "apps.apple.com/us/app/lo...",
        "link": "https://loops.video/...",
        "is_verified": false
      },
      {
        "url": "pixelfed.org/support-our...",
        "link": "https://loops.video/...",
        "is_verified": false
      },
      {
        "url": "joinloops.org/team",
        "link": "https://loops.video/...",
        "is_verified": false
      },
      {
        "url": "joinloops.org/share",
        "link": "https://loops.video/...",
        "is_verified": false
      }
    ],
    "has_playlists": true,
    "is_admin": true,
    "created_at": "2024-06-06T10:20:02+00:00",
    "likes_count": 4361
  }
}