Skip to main content

Get user profiles

GET 

https://whatpulse.test/api/v1/users/:id/profiles

Get a list of client profiles for a specific user. Client profiles represent different software configurations or applications tracked by WhatPulse. You can filter by deletion status and control pagination. The response includes profile information with associated computer details.

Request

Path Parameters

    id stringrequired

    User ID or username

Query Parameters

    is_deleted string

    Possible values: [1, 0, true, false]

    per_page integer

    Possible values: >= 1 and <= 100

Responses

Schema
    profiles object[]required
  • Array [
  • idintegerrequired
    namestringrequired
    last_usedstringrequired
    is_deletedbooleanrequired
    created_atstringrequired
    computer object
    idstringrequired
    namestringrequired
  • ]
  • pagination objectrequired
    current_pageintegerrequired

    The current page number in the paginated result.

    per_pageintegerrequired

    The number of items per page in the paginated result.

    totalintegerrequired

    The total number of items across all pages.

    last_pageintegerrequired

    The total number of pages available in the paginated result.

    fromintegerrequired

    The starting item index for the current page.

    tointegerrequired

    The ending item index for the current page.

    links objectrequired
    firststringrequired

    The URL for the first page of results.

    laststringrequired

    The URL for the last page of results.

    prevstring | nullnullablerequired

    The URL for the previous page of results, or null if there is no previous page.

    nextstring | nullnullablerequired

    The URL for the next page of results, or null if there is no next page. If you're paginating, you can call this url to get the next page of results.

    filters objectrequired
    is_deletedboolean | nullnullablerequired

Authorization: http

name: httptype: httpscheme: bearer
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://whatpulse.test/api/v1/users/:id/profiles"
method := "GET"

client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <token>")

res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()

body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Request Collapse all
Base URL
https://whatpulse.test/api/v1
Auth
Parameters
— pathrequired
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!