Skip to main content
GET
/
api
/
selected-skills
/
{user_id}
Get Selected Skills
curl --request GET \
  --url https://api.example.com/v1/api/selected-skills/{user_id} \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "count": 2,
  "data": [
    {
      "selected_skill_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "user_id": "user-123",
      "skill_id": "sk-001",
      "sub_skill_id": "sub-001",
      "master_skill_id": "ms-001",
      "createdAt": "2025-01-15T10:30:00.000Z",
      "updatedAt": "2025-01-15T10:30:00.000Z"
    }
  ]
}
Pass in a user ID, get back their full list of selected skills. If they haven’t selected anything yet, you’ll get an empty array — not an error. No authentication needed.

Path Parameters

user_id
string
required
The ID of the user you want to look up. This is whatever string you’re using as a user identifier in your system.

Response

success
boolean
Always true when the request goes through fine
count
integer
How many skills this user has selected
data
array
The list of selected skill records. Empty array if none yet.

Examples

curl "http://localhost:5000/api/selected-skills/user-123"
{
  "success": true,
  "count": 2,
  "data": [
    {
      "selected_skill_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "user_id": "user-123",
      "skill_id": "sk-001",
      "sub_skill_id": "sub-001",
      "master_skill_id": "ms-001",
      "createdAt": "2025-01-15T10:30:00.000Z",
      "updatedAt": "2025-01-15T10:30:00.000Z"
    }
  ]
}