Skip to main content
GET
/
partner
/
get
List Partners
curl --request GET \
  --url https://api.example.com/partner/get
{
  "result": [
    {
      "id": "<string>",
      "name": "<string>",
      "email": "<string>",
      "phoneNumber": "<string>",
      "cedula": 123
    }
  ]
}

Overview

This endpoint retrieves the complete list of all partners registered in the system. Authentication is required via JWT token in the access_token cookie.

Request

This endpoint does not require any parameters. Simply make a GET request with valid authentication.

Response

result
array
Array of partner objects

Example Request

curl -X GET https://api.example.com/partner/get \
  -H "Content-Type: application/json" \
  -b "access_token=YOUR_JWT_TOKEN"

Example Response

200 Success
{
  "result": [
    {
      "id": "P001",
      "name": "Carlos Rodríguez",
      "email": "[email protected]",
      "phoneNumber": "3215667890",
      "cedula": 1234567890
    },
    {
      "id": "P002",
      "name": "María González",
      "email": "[email protected]",
      "phoneNumber": "3001234567",
      "cedula": 9876543210
    }
  ]
}
401 Unauthorized
{
  "message": "Token no enviado o inválido"
}
500 Internal Server Error
{
  "message": "Error interno del servidor"
}

Build docs developers (and LLMs) love