Skip to main content

GET /api/profiles

Retrieve community member profiles from the talent and skills directory.

Query Parameters

No query parameters required. Returns all profiles.

Response Format

status
string
required
Status of the API response (“success” or “error”)
count
number
required
Total number of profiles returned
data
object
required
Container for the profiles data
profiles
array
required
Array of profile objects
id
string
Unique profile identifier
name
string
Person’s full name
skill
string
Primary skill or profession
status
string
Profile status (e.g., “active”, “seeking work”)
location
string
Location within Dzaleka
category
string
Skill category
level
string
Experience level (beginner, intermediate, expert)
profileImage
string
URL to profile image
email
string
Contact email
phone
string
Contact phone number
shortDescription
string
Brief profile description

Example Request

curl https://services.dzaleka.com/api/profiles

Example Response

{
  "status": "success",
  "count": 42,
  "data": {
    "profiles": [
      {
        "id": "john-web-developer",
        "name": "John Doe",
        "skill": "Web Developer",
        "status": "Available for work",
        "location": "Zone A",
        "category": "Technology",
        "level": "Intermediate",
        "profileImage": "/images/profiles/john.jpg",
        "email": "john@example.com",
        "phone": "+265 123 456 789",
        "shortDescription": "Full-stack developer with 3 years experience in React and Node.js"
      }
    ]
  }
}

POST /api/profiles

Submit profile data with optional metadata.

Headers

  • Content-Type: application/json (required)

Request Body

metadata
object
Optional metadata about the request context

Response

Returns the same format as GET with additional metadata if provided.