Skip to main content

List All Certificates

Authentication Required: This endpoint requires a valid JWT token.
GET /api/me/certificates
Retrieve all certificate entries for the authenticated user.

Response

status
string
Response status (“success” or “error”)
message
string
Response message
data
array
Array of certificate entries
id
long
Certificate ID
educationId
long
Associated education entry ID (optional)
name
string
Certificate name
description
string
Certificate description
imageUrl
string
URL to certificate image
fileId
string
File ID for uploaded certificate document
curl -X GET https://api.portfoliohub.com/api/me/certificates \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Get Certificate by ID

Authentication Required: This endpoint requires a valid JWT token.
GET /api/me/certificates/{id}
Retrieve a specific certificate entry by ID.

Path Parameters

id
long
required
Certificate ID

Response

status
string
Response status (“success” or “error”)
message
string
Response message
data
object
Certificate details (same structure as list items)
curl -X GET https://api.portfoliohub.com/api/me/certificates/1 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Create Certificate

Authentication Required: This endpoint requires a valid JWT token.
POST /api/me/certificates
Create a new certificate entry.
After creating a certificate, use the file upload endpoint to attach the certificate document.

Request Body

name
string
required
Certificate name (max 255 characters)
description
string
Certificate description (max 65535 characters)
educationId
long
ID of associated education entry (optional)

Response

status
string
Response status (“success” or “error”)
message
string
Response message
data
object
Created certificate entry
curl -X POST https://api.portfoliohub.com/api/me/certificates \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "AWS Certified Solutions Architect",
    "description": "Professional level certification for AWS cloud architecture",
    "educationId": 5
  }'

Update Certificate

Authentication Required: This endpoint requires a valid JWT token.
PUT /api/me/certificates/{id}
Update an existing certificate entry.

Path Parameters

id
long
required
Certificate ID to update

Request Body

name
string
required
Certificate name (max 255 characters)
description
string
Certificate description (max 65535 characters)
educationId
long
ID of associated education entry (optional)

Response

status
string
Response status (“success” or “error”)
message
string
Response message
data
object
Updated certificate entry
curl -X PUT https://api.portfoliohub.com/api/me/certificates/1 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "AWS Certified Solutions Architect - Professional",
    "description": "Advanced professional level certification for AWS cloud architecture",
    "educationId": 5
  }'

Delete Certificate

Authentication Required: This endpoint requires a valid JWT token.
DELETE /api/me/certificates/{id}
Delete a certificate entry.

Path Parameters

id
long
required
Certificate ID to delete

Response

status
string
Response status (“success” or “error”)
message
string
Response message
data
null
No data returned on successful deletion
curl -X DELETE https://api.portfoliohub.com/api/me/certificates/1 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Build docs developers (and LLMs) love