Translator Portfolios
/translatorsOpt-in public translator portfolios, independent of creator approval or subscription plans. All responses use Cache-Control: no-store.
/translators/meGet your portfolio editor dataPUT/translators/meSave or publish your translator portfolioGET/translators/:identifierGet a published translator portfolioGet your portfolio editor data
Returns a profile (an unpublished draft by default), your resolved account profile picture, and public books you own or contribute to. Stale selections for private, deleted, or disassociated books are omitted. No approval or special account role is required.
Errors
401Authentication required403Invalid token
curl -X GET "https://app.ummahspot.com/translators/me" \
-H "Authorization: Bearer $SHARH_TOKEN"{
"profile": {
"published": true,
"slug": "amina-hassan",
"displayName": "Amina Hassan",
"headline": "Arabic–English translator",
"bio": "Translations of classical Islamic texts.",
"location": "London",
"website": "https://example.com/",
"linkedin": "",
"works": [
{
"book": "607f1f77bcf86cd799439011",
"description": "Translation and explanatory notes."
}
],
"externalWorks": [
{
"title": "Translation notes",
"url": "https://example.com/notes",
"description": "Essays on translation."
}
]
},
"profilePicture": null,
"books": [
{
"id": "607f1f77bcf86cd799439011",
"title": "Al-Ājurrūmiyyah",
"author": "Ibn Ājurrūm",
"href": "/books/al-ajrumiyyah/",
"description": "",
"category": "Arabic Grammar",
"progress": "Complete",
"subscriberOnly": false
}
]
}Save or publish your translator portfolio
Replaces the authenticated user’s portfolio. Only portfolio fields are accepted. Publishing is opt-in; set published to false to unpublish immediately. Changing the slug changes shared links; the user’s ObjectId URL remains valid. Selected books must still be public and owned by or contributed to by the user. Book access rules and subscription requirements remain in effect.
Body parameters
publishedrequiredboolean | Whether anonymous visitors may view the page. |
slugrequiredstring | Unique address, 3–64 lowercase letters, numbers, or single hyphens. ObjectId-shaped addresses are reserved. |
displayNamerequiredstring | Public name, up to 100 characters. |
headlinestring | Up to 160 characters. |
biostring | Plain text, up to 5,000 characters. |
locationstring | Up to 100 characters. |
websitestring | HTTP(S) URL, up to 2,000 characters, or empty. |
linkedinstring | HTTP(S) URL, up to 2,000 characters, or empty. |
worksarray | Up to 100 unique { book: ObjectId, description: string } objects, in display order. Descriptions: up to 1,000 characters. |
externalWorksarray | Up to 20 { title, url, description } objects. Title and HTTP(S) URL required; limits: 200, 2,000, and 1,000 characters respectively. URLs cannot contain credentials. |
Errors
400Invalid fields or an ineligible book selection401Authentication required403Invalid token409Page address already taken
curl -X PUT "https://app.ummahspot.com/translators/me" \
-H "Authorization: Bearer $SHARH_TOKEN" \
-H "Content-Type: application/json" \
-d '{"published":true,"slug":"string","displayName":"string"}'{
"profile": {
"published": true,
"slug": "amina-hassan",
"displayName": "Amina Hassan",
"headline": "Arabic–English translator",
"bio": "Translations of classical Islamic texts.",
"location": "London",
"website": "https://example.com/",
"linkedin": "",
"works": [
{
"book": "607f1f77bcf86cd799439011",
"description": "Translation and explanatory notes."
}
],
"externalWorks": [
{
"title": "Translation notes",
"url": "https://example.com/notes",
"description": "Essays on translation."
}
]
}
}Get a published translator portfolio
Accepts a profile slug or user ObjectId. Draft and nonexistent profiles return the same 404. Returns whitelisted public profile fields and selected book metadata, never email, billing details, storage keys, or book contents. Book visibility and the translator’s ownership/contributor relationship are rechecked on every request. Subscriber-only public books are labeled; their content is still gated by the books API.
Path parameters
identifierstring | Public profile slug or user ObjectId. |
Errors
404Portfolio does not exist or is unpublished
curl -X GET "https://app.ummahspot.com/translators/:identifier"{
"profile": {
"id": "507f1f77bcf86cd799439011",
"slug": "amina-hassan",
"displayName": "Amina Hassan",
"headline": "Arabic–English translator",
"bio": "",
"location": "",
"website": "",
"linkedin": "",
"profilePicture": null,
"works": [],
"externalWorks": []
}
}