1:HL["/_next/static/css/3db6122cc27c8de8.css",{"as":"style"}] 0:["TueFr3DgBqMH5pUDMQIwB",[[["",{"children":["api-users",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/3db6122cc27c8de8.css","precedence":"next"}]],"$L3"]]]] 2:[null,"$L4",null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Users - Block-Auth API Reference"}],["$","meta","2",{"name":"description","content":"On this page, we’ll dive into the different users endpoints you can use to manage users programmatically. We’ll look at how to query the users."}],["$","meta","3",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","4",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"256x256"}]] 5:I{"id":1431,"chunks":["685:static/chunks/685-00eaf189776e499f.js","411:static/chunks/411-9586d5d3621ed092.js","21:static/chunks/21-7cecc0b8d96c28b4.js","361:static/chunks/361-306de3187f051a9b.js","379:static/chunks/379-8c339dbec83324f1.js","39:static/chunks/39-5ee607123f978930.js","185:static/chunks/app/layout-029d30f4466dc98a.js"],"name":"Providers","async":false} 6:I{"id":6848,"chunks":["685:static/chunks/685-00eaf189776e499f.js","411:static/chunks/411-9586d5d3621ed092.js","21:static/chunks/21-7cecc0b8d96c28b4.js","361:static/chunks/361-306de3187f051a9b.js","379:static/chunks/379-8c339dbec83324f1.js","39:static/chunks/39-5ee607123f978930.js","185:static/chunks/app/layout-029d30f4466dc98a.js"],"name":"Layout","async":false} 7:I{"id":7767,"chunks":["272:static/chunks/webpack-485b50192fb0a198.js","971:static/chunks/fd9d1056-0462299d818c8abc.js","596:static/chunks/596-0ef5ecc2d8dbbafa.js"],"name":"default","async":false} 8:I{"id":7920,"chunks":["272:static/chunks/webpack-485b50192fb0a198.js","971:static/chunks/fd9d1056-0462299d818c8abc.js","596:static/chunks/596-0ef5ecc2d8dbbafa.js"],"name":"default","async":false} 9:I{"id":6685,"chunks":["685:static/chunks/685-00eaf189776e499f.js","411:static/chunks/411-9586d5d3621ed092.js","39:static/chunks/39-5ee607123f978930.js","632:static/chunks/app/api-users/page-fb7f8337fb9def8e.js"],"name":"","async":false} b:I{"id":3971,"chunks":["685:static/chunks/685-00eaf189776e499f.js","411:static/chunks/411-9586d5d3621ed092.js","39:static/chunks/39-5ee607123f978930.js","632:static/chunks/app/api-users/page-fb7f8337fb9def8e.js"],"name":"Heading","async":false} c:I{"id":2140,"chunks":["685:static/chunks/685-00eaf189776e499f.js","411:static/chunks/411-9586d5d3621ed092.js","39:static/chunks/39-5ee607123f978930.js","632:static/chunks/app/api-users/page-fb7f8337fb9def8e.js"],"name":"Code","async":false} d:I{"id":2140,"chunks":["685:static/chunks/685-00eaf189776e499f.js","411:static/chunks/411-9586d5d3621ed092.js","39:static/chunks/39-5ee607123f978930.js","632:static/chunks/app/api-users/page-fb7f8337fb9def8e.js"],"name":"CodeGroup","async":false} e:I{"id":2140,"chunks":["685:static/chunks/685-00eaf189776e499f.js","411:static/chunks/411-9586d5d3621ed092.js","39:static/chunks/39-5ee607123f978930.js","632:static/chunks/app/api-users/page-fb7f8337fb9def8e.js"],"name":"Pre","async":false} 19:I{"id":1686,"chunks":["685:static/chunks/685-00eaf189776e499f.js","411:static/chunks/411-9586d5d3621ed092.js","39:static/chunks/39-5ee607123f978930.js","632:static/chunks/app/api-users/page-fb7f8337fb9def8e.js"],"name":"Feedback","async":false} f:T13b3,const myHeaders = new Headers(); myHeaders.append("Authorization", "Bearer your_access_token_here"); const raw = ""; const requestOptions = { method: "GET", headers: myHeaders, body: raw, redirect: "follow" }; fetch("https://api.block-auth.io/api/users?page=1&limit=100", requestOptions) .then((response) => response.text()) .then((result) => console.log(result)) .catch((error) => console.error(error)); 10:T14b6,<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.block-auth.io/api/users?page=1&limit=100', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Authorization: Bearer your_access_token_here' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; 11:T95b,import requests url = "https://api.block-auth.io/api/users?page=1&limit=100" payload = "" headers = { 'Authorization': 'Bearer your_access_token_here' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text) 12:T13e5,var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Get, "https://api.block-auth.io/api/users?page=1&limit=100"); request.Headers.Add("Authorization", "Bearer your_access_token_here"); var content = new StringContent("", null, "text/plain"); request.Content = content; var response = await client.SendAsync(request); response.EnsureSuccessStatusCode(); Console.WriteLine(await response.Content.ReadAsStringAsync()); 13:T1434,OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("text/plain"); RequestBody body = RequestBody.create(mediaType, ""); Request request = new Request.Builder() .url("https://api.block-auth.io/api/users?page=1&limit=100") .method("GET", body) .addHeader("Authorization", "Bearer your_access_token_here") .build(); Response response = client.newCall(request).execute(); 14:Tf25,require "uri" require "net/http" url = URI("https://api.block-auth.io/api/users?page=1&limit=100") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = "Bearer your_access_token_here" response = https.request(request) puts response.read_body 15:T1c3b,package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://api.block-auth.io/api/users?page=1&limit=100" method := "GET" payload := strings.NewReader(``) client := &http.Client { } req, err := http.NewRequest(method, url, payload) if err != nil { fmt.Println(err) return } req.Header.Add("Authorization", "Bearer your_access_token_here") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) } 16:T1d6e,#[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let client = reqwest::Client::builder() .build()?; let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer your_access_token_here".parse()?); let data = ""; let request = client.request(reqwest::Method::GET, "https://api.block-auth.io/api/users?page=1&limit=100") .headers(headers) .body(data); let response = request.send().await?; let body = response.text().await?; println!("{}", body); Ok(()) } 17:T161a,var request = URLRequest(url: URL(string: "https://api.block-auth.io/api/users?page=1&limit=100")!,timeoutInterval: Double.infinity) request.addValue("Bearer your_access_token_here", forHTTPHeaderField: "Authorization") request.httpMethod = "GET" let task = URLSession.shared.dataTask(with: request) { data, response, error in guard let data = data else { print(String(describing: error)) return } print(String(data: data, encoding: .utf8)!) } task.resume() 18:T14d4,{ "success": true, "message": { "pages": 1, "items": [ { "id": 1, "user_address": "0x829cDC759c4339C8554C5C9E750C9c5A3B7828c8", "app_name": "BlockAuth", "user_total_txns": "1", "user_first_used_at": "2024-04-07T17:50:07.000Z", "user_last_used_at": "2024-04-07T17:50:07.000Z", "user_services_names": [ "blockauth" ], "roles": [] } ], "total": 1 } } 4:["$","html",null,{"lang":"en","className":"h-full","suppressHydrationWarning":true,"children":["$","body",null,{"className":"flex min-h-full bg-white antialiased dark:bg-blue-900","children":["$","$L5",null,{"children":["$","div",null,{"className":"w-full","children":["$","$L6",null,{"allSections":{"/":[{"title":"API Rest","id":"resources"},{"title":"SDKs","id":"resources"},{"title":"Browser Extension","id":"resources"},{"title":"Dashboard","id":"resources"}],"/api-app":[{"title":"The app configuration model","id":"the-app-configuration-model"},{"title":"Get app configuration","id":"get-app-configuration","tag":"GET","label":"/api/app"}],"/api-auth":[{"title":"Basic authentication","id":"basic-authentication"},{"title":"Refresh token","id":"refresh-token"},{"title":"OAuth2 with bearer token","id":"o-auth2-with-bearer-token"},{"title":"Using an SDK","id":"using-an-sdk"}],"/api-intro":[{"title":"Guides","id":"guides"},{"title":"Resources","id":"resources"}],"/api-logs":[{"title":"The logs model","id":"the-logs-model"},{"title":"Get a list of logs","id":"get-a-list-of-logs","tag":"GET","label":"/api/logs"}],"/api":[{"title":"Sending events from website to extension","id":"sending-events-from-website-to-extension"}],"/api-roles":[{"title":"The role model","id":"the-role-model"},{"title":"Get a list of roles","id":"get-a-list-of-roles","tag":"GET","label":"/api/roles"}],"/api-users":[{"title":"The user model","id":"the-user-model"},{"title":"Get a list of users","id":"get-a-list-of-users","tag":"GET","label":"/api/users"}],"/dashboard-guides":[{"title":"View: Applications","id":"view-applications"},{"title":"View: Users management","id":"view-users-management"},{"title":"View: Monitoring","id":"view-monitoring"},{"title":"View: Tenant management","id":"view-tenant-management"},{"title":"View: Modules","id":"view-modules"}],"/dashboard-intro":[{"title":"Guides","id":"guides"},{"title":"Resources","id":"resources"}],"/errors":[{"title":"Status codes","id":"status-codes"},{"title":"Error types","id":"error-types"}],"/extension-api":[{"title":"Sending events from website to extension","id":"sending-events-from-website-to-extension"}],"/extension-introduction":[{"title":"Getting started","id":"getting-started","anchor":false}],"/extension-quickstart":[{"title":"How to create an account","id":"how-to-create-an-account"},{"title":"How to sign in","id":"how-to-sign-in"},{"title":"How to link an account","id":"how-to-link-an-account"},{"title":"How to use OTP","id":"how-to-use-otp"}],"/pagination":[{"title":"Example using cursors","id":"example-using-cursors"}],"/sdk-app":[{"title":"The app model","id":"the-app-model"},{"title":"Get an App","id":"get-an-app","tag":"event","label":"sdk:app"}],"/sdk-auth":[{"title":"Choose your client","id":"choose-your-client"},{"title":"Connecting using credentials","id":"connecting-using-credentials"},{"title":"Verify USER is logged in or not into APP","id":"verify-user-is-logged-in-or-not-into-app"},{"title":"What's next?","id":"whats-next"}],"/sdk-intro":[{"title":"Official libraries","id":"official-libraries"}],"/sdk-logs":[{"title":"The app model","id":"the-app-model"},{"title":"Get an App","id":"get-an-app","tag":"event","label":"sdk:app"}],"/sdk-permissions":[{"title":"The app model","id":"the-app-model"},{"title":"Get an App","id":"get-an-app","tag":"event","label":"sdk:app"}],"/sdk-react":[{"title":"Choose your client","id":"choose-your-client"},{"title":"Connecting using credentials","id":"connecting-using-credentials"},{"title":"What's next?","id":"whats-next"}],"/sdk-roles":[{"title":"The rol model","id":"the-rol-model"},{"title":"Get an App","id":"get-an-app","tag":"event","label":"sdk:app"}],"/sdk-users":[{"title":"The app model","id":"the-app-model"},{"title":"Get an App","id":"get-an-app","tag":"event","label":"sdk:app"}],"/webhooks":[{"title":"Registering webhooks","id":"registering-webhooks"},{"title":"Consuming webhooks","id":"consuming-webhooks"},{"title":"Event types","id":"event-types"},{"title":"Security","id":"security"}]},"children":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":[["$","div",null,{"className":"absolute inset-0 -z-10 mx-0 max-w-none overflow-hidden","children":["$","div",null,{"className":"absolute left-1/2 top-0 ml-[-38rem] h-[25rem] w-[81.25rem] dark:[mask-image:linear-gradient(white,transparent)]","children":[["$","div",null,{"className":"absolute inset-0 bg-gradient-to-r from-[#36b49f] to-[#DBFF75] opacity-40 [mask-image:radial-gradient(farthest-side_at_top,white,transparent)] dark:from-[#36b49f]/30 dark:to-[#DBFF75]/30 dark:opacity-100","children":["$","svg",null,{"aria-hidden":"true","className":"absolute inset-x-0 inset-y-[-50%] h-[200%] w-full skew-y-[-18deg] fill-black/40 stroke-black/50 mix-blend-overlay dark:fill-white/2.5 dark:stroke-white/5","children":[["$","defs",null,{"children":["$","pattern",null,{"id":":S1:","width":72,"height":56,"patternUnits":"userSpaceOnUse","x":-12,"y":4,"children":["$","path",null,{"d":"M.5 56V.5H72","fill":"none"}]}]}],["$","rect",null,{"width":"100%","height":"100%","strokeWidth":0,"fill":"url(#:S1:)"}],["$","svg",null,{"x":-12,"y":4,"className":"overflow-visible","children":[["$","rect","4-3",{"strokeWidth":"0","width":73,"height":57,"x":288,"y":168}],["$","rect","2-1",{"strokeWidth":"0","width":73,"height":57,"x":144,"y":56}],["$","rect","7-3",{"strokeWidth":"0","width":73,"height":57,"x":504,"y":168}],["$","rect","10-6",{"strokeWidth":"0","width":73,"height":57,"x":720,"y":336}]]}]]}]}],["$","svg",null,{"viewBox":"0 0 1113 440","aria-hidden":"true","className":"absolute left-1/2 top-0 ml-[-19rem] w-[69.5625rem] fill-white blur-[26px] dark:hidden","children":["$","path",null,{"d":"M.016 439.5s-9.5-300 434-300S882.516 20 882.516 20V0h230.004v439.5H.016Z"}]}]]}]}],["$","div",null,{"className":"mx-auto flex h-full max-w-xl flex-col items-center justify-center py-16 text-center","children":[["$","p",null,{"className":"text-sm font-semibold text-gray-900 dark:text-white","children":"404"}],["$","h1",null,{"className":"mt-2 text-2xl font-bold text-gray-900 dark:text-white","children":"Page not found"}],["$","p",null,{"className":"mt-2 text-base text-gray-600 dark:text-gray-400","children":"Sorry, we couldn’t find the page you’re looking for."}],["$","$L9",null,{"className":"inline-flex gap-0.5 justify-center overflow-hidden text-sm font-medium transition rounded-full bg-blue-900 py-1 px-3 text-white hover:bg-blue-700 dark:bg-emerald-400/10 dark:text-emerald-400 dark:ring-1 dark:ring-inset dark:ring-emerald-400/20 dark:hover:bg-emerald-400/10 dark:hover:text-emerald-300 dark:hover:ring-emerald-300 mt-8","href":"/","children":[false,"Back to docs",["$","svg",null,{"viewBox":"0 0 20 20","fill":"none","aria-hidden":"true","className":"mt-0.5 h-5 w-5 -mr-1","children":["$","path",null,{"stroke":"currentColor","strokeLinecap":"round","strokeLinejoin":"round","d":"m11.5 6.5 3 3.5m0 0-3 3.5m3-3.5h-9"}]}]]}]]}]],"notFoundStyles":[],"childProp":{"current":["$","$L7",null,{"parallelRouterKey":"children","segmentPath":["children","api-users","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L8",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$La",["$","article",null,{"className":"flex h-full flex-col pb-10 pt-16","children":[["$","div",null,{"className":"flex-auto prose dark:prose-invert [html_:where(&>*)]:mx-auto [html_:where(&>*)]:max-w-2xl [html_:where(&>*)]:lg:mx-[calc(50%-min(50%,theme(maxWidth.lg)))] [html_:where(&>*)]:lg:max-w-3xl","children":[["$","h1",null,{"children":"Users"}],"\n",["$","p",null,{"children":"As the name suggest, User is a Main model in Block-Auth. On this page, we'll dive into the different users endpoints you can use to manage users programmatically. We'll look at how to query the users."}],"\n",["$","$Lb",null,{"level":2,"id":"the-user-model","children":"The user model"}],"\n",["$","p",null,{"children":"The user model contains all the information about your users, such as the user's DID and expiration times. The user model also contains information about the user's roles."}],"\n",["$","h3",null,{"children":"Properties"}],"\n",["$","div",null,{"className":"my-6","children":["$","ul",null,{"role":"list","className":"m-0 max-w-[calc(theme(maxWidth.lg)-theme(spacing.8))] list-none divide-y divide-blue-900/5 p-0 dark:divide-white/5","children":[["$","li",null,{"className":"m-0 px-0 py-4 first:pt-0 last:pb-0","children":["$","dl",null,{"className":"m-0 flex flex-wrap items-center gap-x-3 gap-y-2","children":[["$","dt",null,{"className":"sr-only","children":"Name"}],["$","dd",null,{"children":["$","code",null,{"children":"id"}]}],[["$","dt",null,{"className":"sr-only","children":"Type"}],["$","dd",null,{"className":"font-mono text-xs text-gray-400 dark:text-gray-500","children":"string"}]],["$","dt",null,{"className":"sr-only","children":"Description"}],["$","dd",null,{"className":"w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0","children":["$","p",null,{"children":"Unique identifier for the User."}]}]]}]}],["$","li",null,{"className":"m-0 px-0 py-4 first:pt-0 last:pb-0","children":["$","dl",null,{"className":"m-0 flex flex-wrap items-center gap-x-3 gap-y-2","children":[["$","dt",null,{"className":"sr-only","children":"Name"}],["$","dd",null,{"children":["$","code",null,{"children":"user_address"}]}],[["$","dt",null,{"className":"sr-only","children":"Type"}],["$","dd",null,{"className":"font-mono text-xs text-gray-400 dark:text-gray-500","children":"string"}]],["$","dt",null,{"className":"sr-only","children":"Description"}],["$","dd",null,{"className":"w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0","children":["$","p",null,{"children":"The user's DID."}]}]]}]}],["$","li",null,{"className":"m-0 px-0 py-4 first:pt-0 last:pb-0","children":["$","dl",null,{"className":"m-0 flex flex-wrap items-center gap-x-3 gap-y-2","children":[["$","dt",null,{"className":"sr-only","children":"Name"}],["$","dd",null,{"children":["$","code",null,{"children":"app_name"}]}],[["$","dt",null,{"className":"sr-only","children":"Type"}],["$","dd",null,{"className":"font-mono text-xs text-gray-400 dark:text-gray-500","children":"string"}]],["$","dt",null,{"className":"sr-only","children":"Description"}],["$","dd",null,{"className":"w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0","children":["$","p",null,{"children":"The name of the App where the User is registered."}]}]]}]}],["$","li",null,{"className":"m-0 px-0 py-4 first:pt-0 last:pb-0","children":["$","dl",null,{"className":"m-0 flex flex-wrap items-center gap-x-3 gap-y-2","children":[["$","dt",null,{"className":"sr-only","children":"Name"}],["$","dd",null,{"children":["$","code",null,{"children":"user_first_used_at"}]}],[["$","dt",null,{"className":"sr-only","children":"Type"}],["$","dd",null,{"className":"font-mono text-xs text-gray-400 dark:text-gray-500","children":"timestamp"}]],["$","dt",null,{"className":"sr-only","children":"Description"}],["$","dd",null,{"className":"w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0","children":["$","p",null,{"children":"Timestamp of when the User sign into the APP for the first time."}]}]]}]}],["$","li",null,{"className":"m-0 px-0 py-4 first:pt-0 last:pb-0","children":["$","dl",null,{"className":"m-0 flex flex-wrap items-center gap-x-3 gap-y-2","children":[["$","dt",null,{"className":"sr-only","children":"Name"}],["$","dd",null,{"children":["$","code",null,{"children":"user_last_used_at"}]}],[["$","dt",null,{"className":"sr-only","children":"Type"}],["$","dd",null,{"className":"font-mono text-xs text-gray-400 dark:text-gray-500","children":"timestamp"}]],["$","dt",null,{"className":"sr-only","children":"Description"}],["$","dd",null,{"className":"w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0","children":["$","p",null,{"children":"Timestamp of when the User sign into the APP for the last time."}]}]]}]}],["$","li",null,{"className":"m-0 px-0 py-4 first:pt-0 last:pb-0","children":["$","dl",null,{"className":"m-0 flex flex-wrap items-center gap-x-3 gap-y-2","children":[["$","dt",null,{"className":"sr-only","children":"Name"}],["$","dd",null,{"children":["$","code",null,{"children":"user_services_names"}]}],[["$","dt",null,{"className":"sr-only","children":"Type"}],["$","dd",null,{"className":"font-mono text-xs text-gray-400 dark:text-gray-500","children":"array"}]],["$","dt",null,{"className":"sr-only","children":"Description"}],["$","dd",null,{"className":"w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0","children":["$","p",null,{"children":["List of services the User is using to sign in.\nCan be one of the following: ",["$","$Lc",null,{"children":"google"}],", ",["$","$Lc",null,{"children":"metamask"}],", ",["$","$Lc",null,{"children":"blockauth"}],", ",["$","$Lc",null,{"children":"phantom"}],", ",["$","$Lc",null,{"children":"microsoft"}],"."]}]}]]}]}],["$","li",null,{"className":"m-0 px-0 py-4 first:pt-0 last:pb-0","children":["$","dl",null,{"className":"m-0 flex flex-wrap items-center gap-x-3 gap-y-2","children":[["$","dt",null,{"className":"sr-only","children":"Name"}],["$","dd",null,{"children":["$","code",null,{"children":"roles"}]}],[["$","dt",null,{"className":"sr-only","children":"Type"}],["$","dd",null,{"className":"font-mono text-xs text-gray-400 dark:text-gray-500","children":"array"}]],["$","dt",null,{"className":"sr-only","children":"Description"}],["$","dd",null,{"className":"w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0","children":["$","p",null,{"children":"List of roles the User has."}]}]]}]}]]}]}],"\n",["$","hr",null,{}],"\n",["$","$Lb",null,{"level":2,"id":"get-a-list-of-users","children":"Get a list of users","tag":"GET","label":"/api/users"}],"\n",["$","div",null,{"className":"grid grid-cols-1 items-start gap-x-16 gap-y-10 xl:max-w-none xl:grid-cols-2 w-full","children":["$","div",null,{"className":"[&>:first-child]:mt-0 [&>:last-child]:mb-0","children":["$","p",null,{"children":"This endpoint allows you to get a list of users. You can filter the users by page, limit, and services."}]}]}],"\n",["$","$Ld",null,{"title":"API - users","tag":"GET","label":"/api/users?page=1&limit=100&fromServices=google%2Cmetamask%2Cblockauth","children":[["$","$Le",null,{"language":"bash","code":"curl --location 'https://api.block-auth.io/api/users?page=1&limit=100&fromServices=google%2Cmetamask%2Cblockauth' \\\n--header 'Authorization: Bearer your_access_token_here' \\\n--data ''\n","children":["$","$Lc",null,{"className":"language-bash","children":"curl --location 'https://api.block-auth.io/api/users?page=1&limit=100&fromServices=google%2Cmetamask%2Cblockauth' \\\n--header 'Authorization: Bearer your_access_token_here' \\\n--data ''\n"}],"title":"cURL"}],["$","$Le",null,{"language":"js","code":"const myHeaders = new Headers();\nmyHeaders.append(\"Authorization\", \"Bearer your_access_token_here\");\n\nconst raw = \"\";\n\nconst requestOptions = {\n method: \"GET\",\n headers: myHeaders,\n body: raw,\n redirect: \"follow\"\n};\n\nfetch(\"https://api.block-auth.io/api/users?page=1&limit=100\", requestOptions)\n .then((response) => response.text())\n .then((result) => console.log(result))\n .catch((error) => console.error(error));\n","children":["$","$Lc",null,{"className":"language-js","children":"$f"}]}],["$","$Le",null,{"language":"php","code":" 'https://api.block-auth.io/api/users?page=1&limit=100',\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => 'GET',\n CURLOPT_HTTPHEADER => array(\n 'Authorization: Bearer your_access_token_here'\n ),\n));\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n\n","children":["$","$Lc",null,{"className":"language-php","children":"$10"}]}],["$","$Le",null,{"language":"py","code":"import requests\n\nurl = \"https://api.block-auth.io/api/users?page=1&limit=100\"\n\npayload = \"\"\nheaders = {\n 'Authorization': 'Bearer your_access_token_here'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n","children":["$","$Lc",null,{"className":"language-py","children":"$11"}]}],["$","$Le",null,{"language":"csharp","code":"var client = new HttpClient();\nvar request = new HttpRequestMessage(HttpMethod.Get, \"https://api.block-auth.io/api/users?page=1&limit=100\");\nrequest.Headers.Add(\"Authorization\", \"Bearer your_access_token_here\");\nvar content = new StringContent(\"\", null, \"text/plain\");\nrequest.Content = content;\nvar response = await client.SendAsync(request);\nresponse.EnsureSuccessStatusCode();\nConsole.WriteLine(await response.Content.ReadAsStringAsync());\n","children":["$","$Lc",null,{"className":"language-csharp","children":"$12"}],"title":"C#"}],["$","$Le",null,{"language":"java","code":"OkHttpClient client = new OkHttpClient().newBuilder()\n .build();\nMediaType mediaType = MediaType.parse(\"text/plain\");\nRequestBody body = RequestBody.create(mediaType, \"\");\nRequest request = new Request.Builder()\n .url(\"https://api.block-auth.io/api/users?page=1&limit=100\")\n .method(\"GET\", body)\n .addHeader(\"Authorization\", \"Bearer your_access_token_here\")\n .build();\nResponse response = client.newCall(request).execute();\n","children":["$","$Lc",null,{"className":"language-java","children":"$13"}],"title":"Java"}],["$","$Le",null,{"language":"ruby","code":"require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.block-auth.io/api/users?page=1&limit=100\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Authorization\"] = \"Bearer your_access_token_here\"\n\nresponse = https.request(request)\nputs response.read_body\n","children":["$","$Lc",null,{"className":"language-ruby","children":"$14"}]}],["$","$Le",null,{"language":"go","code":"package main\n\nimport (\n \"fmt\"\n \"strings\"\n \"net/http\"\n \"io/ioutil\"\n)\n\nfunc main() {\n\n url := \"https://api.block-auth.io/api/users?page=1&limit=100\"\n method := \"GET\"\n\n payload := strings.NewReader(``)\n\n client := &http.Client {\n }\n req, err := http.NewRequest(method, url, payload)\n\n if err != nil {\n fmt.Println(err)\n return\n }\n req.Header.Add(\"Authorization\", \"Bearer your_access_token_here\")\n\n res, err := client.Do(req)\n if err != nil {\n fmt.Println(err)\n return\n }\n defer res.Body.Close()\n\n body, err := ioutil.ReadAll(res.Body)\n if err != nil {\n fmt.Println(err)\n return\n }\n fmt.Println(string(body))\n}\n","children":["$","$Lc",null,{"className":"language-go","children":"$15"}],"title":"Go"}],["$","$Le",null,{"language":"rust","code":"#[tokio::main]\nasync fn main() -> Result<(), Box> {\n let client = reqwest::Client::builder()\n .build()?;\n\n let mut headers = reqwest::header::HeaderMap::new();\n headers.insert(\"Authorization\", \"Bearer your_access_token_here\".parse()?);\n\n let data = \"\";\n\n let request = client.request(reqwest::Method::GET, \"https://api.block-auth.io/api/users?page=1&limit=100\")\n .headers(headers)\n .body(data);\n\n let response = request.send().await?;\n let body = response.text().await?;\n\n println!(\"{}\", body);\n\n Ok(())\n}\n","children":["$","$Lc",null,{"className":"language-rust","children":"$16"}],"title":"Rust"}],["$","$Le",null,{"language":"swift","code":"var request = URLRequest(url: URL(string: \"https://api.block-auth.io/api/users?page=1&limit=100\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"Bearer your_access_token_here\", forHTTPHeaderField: \"Authorization\")\n\nrequest.httpMethod = \"GET\"\n\nlet task = URLSession.shared.dataTask(with: request) { data, response, error in \n guard let data = data else {\n print(String(describing: error))\n return\n }\n print(String(data: data, encoding: .utf8)!)\n}\n\ntask.resume()\n","children":["$","$Lc",null,{"className":"language-swift","children":"$17"}],"title":"Swift"}]]}],"\n",["$","$Le",null,{"language":"json","code":"{\n\"success\": true,\n\"message\": {\n \"pages\": 1,\n \"items\": [\n {\n \"id\": 1,\n \"user_address\": \"0x829cDC759c4339C8554C5C9E750C9c5A3B7828c8\",\n \"app_name\": \"BlockAuth\",\n \"user_total_txns\": \"1\",\n \"user_first_used_at\": \"2024-04-07T17:50:07.000Z\",\n \"user_last_used_at\": \"2024-04-07T17:50:07.000Z\",\n \"user_services_names\": [\n \"blockauth\"\n ],\n \"roles\": []\n }\n ],\n \"total\": 1\n }\n}\n","children":["$","$Lc",null,{"className":"language-json","children":"$18"}],"title":"Response"}],"\n",["$","hr",null,{}]]}],["$","footer",null,{"className":"mx-auto mt-16 w-full max-w-2xl lg:max-w-5xl","children":["$","$L19",null,{}]}]]}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"api-users"},"styles":[]}]}]}]}]}]}] a:null