PageSourceSearch

https://joinloops.org/_nuxt/CVSgOf0Z.js

js joinloops.org collected 2026-09-24 09:20:59 UTC 4,242 bytes, 52 lines download raw bytes

1import{_ as u}from"./BWk7B67P.js";import{_ as m}from"./DUR2zDW2.js";import{_ as f}from"./DCekyo-p.js";import{_}from"./DrEmDvaX.js";import{_ as g}from"./D40zcxj2.js";import{d as x}from"./DVdlW3MI.js";import{a as b}from"./BZinB5Kq.js";import{e as k,w as a,o as v,a as t,b as s,d as o}from"./BNkJtGqZ.js";const y={class:"space-y-8"},h={class:"space-y-4"},w={class:"grid grid-cols-1 gap-8 xl:grid-cols-2"},A={class:"space-y-6 text-base leading-relaxed text-gray-600 dark:text-gray-300"},R={class:"text-sm"},T={class:"space-y-10"},B={class:"space-y-3"},N={class:"space-y-3"},S={__name:"account-info",setup(q){x("Logo",{}),b({title:"Loops - Account Info Endpoint",description:"GET /api/v1/account/info/self — returns the authenticated account."});const r={curl:`curl https://loops.video/api/v1/account/info/self \\
2  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"`},n=[{status:200,label:"OK",code:`{
3  "data": {
4    "id": "1",
5    "name": "dansup",
6    "avatar": "https://loopsusercontent.com/avatars/1/y6i8g7330.jpg",
7    "username": "dansup",
8    "is_owner": true,
9    "local": true,
10    "bio": "Currently building @pixelfed, @loops, @supapp, @fedidb, and more.",
11    "post_count": 96,
12    "follower_count": 3610,
13    "following_count": 83,
14    "url": "https://loops.video/@dansup",
15    "remote_url": null,
16    "is_blocking": null,
17    "manually_approves_followers": false,
18    "links": [
19      {
20        "url": "apps.apple.com/us/app/lo...",
21        "link": "https://loops.video/...",
22        "is_verified": false
23      },
24      {
25        "url": "pixelfed.org/support-our...",
26        "link": "https://loops.video/...",
27        "is_verified": false
28      },
29      {
30        "url": "joinloops.org/team",
31        "link": "https://loops.video/...",
32        "is_verified": false
33      },
34      {
35        "url": "joinloops.org/share",
36        "link": "https://loops.video/...",
37        "is_verified": false
38      }
39    ],
40    "has_playlists": true,
41    "is_admin": true,
42    "created_at": "2024-06-06T10:20:02+00:00",
43    "likes_count": 4361
44  }
45}`},{status:400,label:"Bad Request",code:`{
46  "error": "Bad request",
47  "message": "The request could not be processed."
48}`},{status:401,label:"Unauthenticated",code:`{
49  "error": "Unauthenticated."
50}`},{status:404,label:"Not Found",code:`{
51  "error": "Not found."
52}`}];return(C,e)=>{const i=u,l=m,d=f,c=_,p=g;return v(),k(p,{wide:""},{default:a(()=>[t("div",y,[t("div",h,[s(i,{method:"GET",path:"/api/v1/account/info/self",reference:"https://docs.joinloops.org/#tag/Account/operation/account.selfAccountInfo"}),e[0]||(e[0]=t("div",null,[t("h1",{class:"text-3xl font-extrabold text-gray-900 dark:text-white"},"Account Info"),t("p",{class:"mt-3 text-base leading-relaxed text-gray-600 dark:text-gray-300"}," 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. ")],-1))]),t("div",w,[t("div",A,[e[5]||(e[5]=t("div",null,[t("h2",{class:"mb-2 text-sm font-bold tracking-wider text-gray-400 uppercase dark:text-gray-500"},"Authentication"),t("p",null,[o("Requires a bearer token with the "),t("code",{class:"px-1 font-mono text-sm rounded bg-gray-100 text-brand-600 dark:bg-gray-800 dark:text-brand-400"},"read"),o(" scope.")])],-1)),e[6]||(e[6]=t("div",null,[t("h2",{class:"mb-2 text-sm font-bold tracking-wider text-gray-400 uppercase dark:text-gray-500"},"Query parameters"),t("p",{class:"text-sm"},"This endpoint takes no query parameters.")],-1)),t("div",null,[e[4]||(e[4]=t("h2",{class:"mb-2 text-sm font-bold tracking-wider text-gray-400 uppercase dark:text-gray-500"},"Returns",-1)),t("p",R,[e[2]||(e[2]=o(" An ",-1)),s(l,{to:"/developers/resources/account",class:"font-semibold text-brand-600 hover:underline dark:text-brand-400"},{default:a(()=>[...e[1]||(e[1]=[o("Account",-1)])]),_:1}),e[3]||(e[3]=o(" resource. ",-1))])])]),t("div",T,[t("div",B,[e[7]||(e[7]=t("h2",{class:"text-sm font-bold tracking-wider text-gray-400 uppercase dark:text-gray-500"},"Request",-1)),s(d,{label:"cURL",code:r.curl},null,8,["code"])]),t("div",N,[e[8]||(e[8]=t("h2",{class:"text-sm font-bold tracking-wider text-gray-400 uppercase dark:text-gray-500"},"Responses",-1)),s(c,{responses:n})])])])])]),_:1})}}};export{S as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.