skillhub/document/docs/04-developer/api/authenticated.md
2026-07-23 12:23:22 +08:00

1.6 KiB

title sidebar_position description
Authenticated APIs 3 APIs requiring authentication

Authenticated APIs

Get Current User

GET /api/v1/auth/me

Logout

POST /api/v1/auth/logout

Skill Publishing

POST /api/v1/publish
Content-Type: multipart/form-data

file: <zip-file>
namespace: <namespace-slug>

Favorites

POST /api/v1/skills/{namespace}/{slug}/star
DELETE /api/v1/skills/{namespace}/{slug}/star

Ratings

POST /api/v1/skills/{namespace}/{slug}/rating
Content-Type: application/json

{
  "score": 5
}

Tag Management

GET /api/v1/skills/{namespace}/{slug}/tags
PUT /api/v1/skills/{namespace}/{slug}/tags/{tagName}
DELETE /api/v1/skills/{namespace}/{slug}/tags/{tagName}

My Resources

GET /api/v1/me/stars
GET /api/v1/me/skills

Namespace Management

POST /api/v1/namespaces
PUT /api/v1/namespaces/{slug}
GET /api/v1/namespaces/{slug}/members
POST /api/v1/namespaces/{slug}/members
PUT /api/v1/namespaces/{slug}/members/{userId}/role
DELETE /api/v1/namespaces/{slug}/members/{userId}

Reviews

GET /api/v1/namespaces/{slug}/reviews
POST /api/v1/namespaces/{slug}/reviews/{id}/approve
POST /api/v1/namespaces/{slug}/reviews/{id}/reject

Promotion Requests

POST /api/v1/namespaces/{slug}/skills/{skillId}/promote

API Token

POST /api/v1/tokens
GET /api/v1/tokens
DELETE /api/v1/tokens/{id}

Next Steps