Skip to main content

Introduction

The Partners API allows you to manage partner records in the DEMET system. Partners are key stakeholders who have specific privileges and access within the platform.

Authentication

All Partner API endpoints require authentication using JWT tokens stored in cookies. The system automatically validates the access_token cookie sent with each request.
"security": [
  {
    "cookieAuth": []
  }
]

Available Endpoints

Create Partner

Register a new partner in the system

List Partners

Retrieve all registered partners

Update Partner

Update an existing partner’s information

Delete Partner

Remove a partner from the system

Partner Object

The partner object contains the following fields:
id
string
required
Unique identifier for the partner
name
string
required
Full name of the partner
email
string
required
Email address of the partner (must be valid email format)
phoneNumber
string
required
Contact phone number
cedula
number
required
Identification number (must be a positive number)

Error Handling

All endpoints return standard HTTP status codes:
  • 200 - Success
  • 400 - Bad Request (validation error or duplicate data)
  • 401 - Unauthorized (missing or invalid token)
  • 404 - Not Found (partner does not exist)
  • 500 - Internal Server Error

Build docs developers (and LLMs) love