Overview
GET/friendsfriends

The caller's accepted friends (each entry names the OTHER user; paginated)

List friends.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • pagequery · optionalstring
  • pageSizequery · optionalstring
Responses
200

A page of the caller's friends

  • itemsFriendEntry[]
  • totalinteger
  • pageinteger
  • pageSizeinteger
Example
{
  "items": [
    {
      "friendId": "string",
      "friendship": {
        "id": "string",
        "ecosystemId": "string",
        "requesterId": "string",
        "addresseeId": "string",
        "status": "pending",
        "createdAt": "string",
        "updatedAt": "string"
      }
    }
  ],
  "total": 0,
  "page": 0,
  "pageSize": 0
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/friends" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/friends", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  },
});
const data = await res.json();