Web / JavaScript
Same-origin web UI, or your own backend for external sites.
A unified REST interface for websites, Android and iOS apps, and desktop software, using the same accounts and CVs without another database.
Append the relative routes below to the base API URL. Always use HTTPS. There is no global platform API key; private operations require a user token.
With a fallback, append the route without its leading slash after route= or r=, then add page and limit with &. Never put credentials in the URL.
curl -i 'https://cv.ssite.vip/api/v1/config'
curl -i 'https://cv.ssite.vip/mobile-api.php?route=config'
curl 'https://cv.ssite.vip/mobile-api.php?route=public&page=1&limit=20'Config returns version, document_profile, name, base_url, api_url, templates, types, sections, image_upload_enabled, direct_pdf_enabled, max_image_bytes, browser_url and docs. Use these to build dynamic interfaces.
Send email and password (8–72 bytes for registration) as JSON. Register returns 201, login 200. The account-specific Bearer token lasts 90 days and can be revoked via logout.
curl -X POST 'https://cv.ssite.vip/api/v1/login' \
-H 'Content-Type: application/json' \
-d '{"email":"[email protected]","password":"YOUR_PASSWORD"}'{
"token": "YOUR_64_HEX_TOKEN",
"token_type": "Bearer",
"expires_in": 7776000,
"user": {
"id": 1,
"email": "[email protected]",
"role": "user"
}
}curl 'https://cv.ssite.vip/api/v1/me' -H 'Authorization: Bearer YOUR_TOKEN'
curl 'https://cv.ssite.vip/api/v1/cvs?page=1&limit=20' -H 'Authorization: Bearer YOUR_TOKEN'
curl -X POST 'https://cv.ssite.vip/api/v1/logout' -H 'Authorization: Bearer YOUR_TOKEN'| HTTP | Relative route | Access | Purpose | Success |
|---|---|---|---|---|
| GET | /config | Public | Platform settings, templates, fields, image/PDF availability | 200 |
| POST | /register | Public | Register with email, password; returns token | 201 |
| POST | /login | Public | Sign in with email, password; returns token | 200 |
| GET | /public | Public | Published CVs only; page, limit | 200 |
| GET | /public/{slug} | Public | Get a published CV by slug | 200 |
| GET | /me | Signed-in user | Account identity and role | 200 |
| POST | /logout | Signed-in user | Revoke current token | 200 |
| GET | /cvs | Signed-in user | List own CVs; page, limit | 200 |
| POST | /cvs | Signed-in user | Create a CV with JSON or multipart | 201 |
| GET | /cvs/{id} | Owner / admin | Read complete editable CV | 200 |
| PUT | /cvs/{id} | Owner / admin | Replace all CV data with JSON | 200 |
| PATCH | /cvs/{id} | Owner / admin | Partial top-level update; sections replaced as a whole | 200 |
| POST | /cvs/{id} | Owner / admin | Full update, optionally upload photo via multipart | 200 |
| DELETE | /cvs/{id} | Owner / admin | Delete CV; returns remote photo deletion result | 200 |
| GET | /cvs/{id}/pdf | Owner / admin | Download text PDF if Chromium is configured | 200 PDF |
| GET | /admin/cvs | Admin only | All private and public CVs; page, limit | 200 |
| GET | /admin/settings | Admin only | Read settings; never returns ImageKit private key | 200 |
| POST | /admin/settings | Admin only | Save site and ImageKit settings | 200 |
| POST | /admin/cvs/{id}/toggle | Admin only | Set published or send {} to toggle | 200 |
Lists use page (starting at 1) and limit (default 20, maximum 50). Response: items, page, limit, total. Replace {id} with the private CV ID and {slug} with the URL-encoded slug. A name is not an authentication credential.
Name is required; other fields are optional. For JSON create send the object itself, not a data wrapper. Full replacement resets omitted fields. Set published: true only with the user’s consent.
| Fields | Type and constraints |
|---|---|
name | string · 120 (required) |
headline, location | string · 160 |
summary | string · 3000 |
email | email · 254 |
phone | string · 80 |
skills | string · 2000 (newline-separated) |
interests | string · 1500 |
website, linkedin, github, portfolio | HTTP(S) URL · 500 |
template | modern, ats, executive, creative, academic |
type | general, student, professional, technical, executive, academic, creative |
language | ar | en |
color | #RRGGBB |
published, show_contact, show_photo, remove_photo | boolean (true / false) |
sections | object → arrays (max 30 entries per section) |
| Key | Section | Entry fields |
|---|---|---|
experience | Work experience | role, company, location, start, end, description |
education | Education | degree, school, location, start, end, description |
projects | Projects | title, link, description |
certificates | Certificates & courses | title, issuer, date, link, description |
languages | Languages | title, level |
awards | Awards & achievements | title, date, description |
volunteer | Volunteering | role, company, start, end, description |
publications | Publications & research | title, issuer, date, link, description |
references | Professional references | title, role, description |
custom | Additional sections | title, description |
Entry strings are limited to 200 characters, descriptions 2500, and link URLs 500. Maximum 30 CVs per account.
{
"name": "Ahmed Ali",
"headline": "Software Engineer",
"summary": "Builds reliable applications.",
"email": "[email protected]",
"phone": "",
"location": "Cairo, Egypt",
"website": "",
"linkedin": "",
"github": "",
"portfolio": "",
"skills": "PHP\nSQLite",
"interests": "",
"type": "technical",
"template": "modern",
"language": "en",
"color": "#175d73",
"show_contact": false,
"show_photo": false,
"published": false,
"sections": {
"experience": [
{
"role": "Engineer",
"company": "Example",
"location": "Cairo",
"start": "2024",
"end": "Present",
"description": "Built internal tools."
}
],
"education": [
{
"degree": "BSc",
"school": "Example University",
"location": "",
"start": "2020",
"end": "2024",
"description": ""
}
],
"projects": [
{
"title": "Project",
"link": "https://example.com",
"description": "Project description"
}
],
"certificates": [],
"languages": [
{
"title": "Arabic",
"level": "Native"
}
],
"awards": [],
"volunteer": [],
"publications": [],
"references": [],
"custom": []
}
}curl -X POST 'https://cv.ssite.vip/api/v1/cvs' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' --data-binary @cv.json# Use the actual ID returned by POST /cvs
curl -X PATCH 'https://cv.ssite.vip/api/v1/cvs/123' -H 'Authorization: Bearer YOUR_TOKEN' -H 'Content-Type: application/json' -d '{"headline":"Senior Engineer"}'
curl -X PATCH 'https://cv.ssite.vip/api/v1/cvs/123' -H 'Authorization: Bearer YOUR_TOKEN' -H 'Content-Type: application/json' -d '{"published":true}'
curl -X DELETE 'https://cv.ssite.vip/api/v1/cvs/123' -H 'Authorization: Bearer YOUR_TOKEN'{
"id": 123,
"user_id": 1,
"slug": "ahmed-ali",
"url": "https://cv.ssite.vip/cv/ahmed-ali",
"photo_url": "",
"data": {
"name": "Ahmed Ali",
"headline": "Software Engineer",
"published": 0
},
"updated_at": "2026-01-01 12:00:00"
}CV responses contain slug, url, photo_url, data and updated_at; private responses add id and user_id. URLs stay unchanged after editing. Public responses omit email and phone when hidden, and suppress photo_url when hidden or using ATS.
Same-origin web UI, or your own backend for external sites.
Native HTTPS clients and interfaces built from config and data.
Windows, macOS and Linux apps using HTTP and JSON.
const base = "https://cv.ssite.vip/api/v1";
async function api(route, { method = 'GET', body, token } = {}) {
const headers = { Accept: 'application/json' };
if (token) headers.Authorization = `Bearer ${token}`;
if (body !== undefined) headers['Content-Type'] = 'application/json';
const response = await fetch(base + '/' + route, {
method, headers, body: body === undefined ? undefined : JSON.stringify(body)
});
const type = response.headers.get('content-type') || '';
if (!type.includes('application/json')) throw new Error(`Non-JSON HTTP ${response.status}`);
const data = await response.json();
if (!response.ok) throw new Error(data.error || `HTTP ${response.status}`);
return data;
}
// Public listing; call login with user-entered credentials for private requests.
const config = await api('config');
const list = await api('public?page=1&limit=20');<?php
// Run on your own server. Requires PHP cURL.
$base = 'https://cv.ssite.vip/api/v1';
function cvApi(string $url, ?string $token = null): array {
$ch = curl_init($url);
$headers = ['Accept: application/json'];
if ($token) $headers[] = 'Authorization: Bearer '.$token;
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => $headers, CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_TIMEOUT => 20]);
$raw = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
$data = is_string($raw) ? json_decode($raw, true) : null;
if ($status < 200 || $status >= 300 || !is_array($data))
throw new RuntimeException('API request failed: '.$status);
return $data;
}
$list = cvApi($base.'/public?page=1&limit=20');
// Return only necessary fields to your frontend; keep user tokens server-side.// Add android.permission.INTERNET to AndroidManifest.xml.
// Execute on a background executor, never on the UI thread.
URL url = new URL("https://cv.ssite.vip/api/v1" + "/cvs?page=1&limit=20");
HttpURLConnection c = (HttpURLConnection) url.openConnection();
try {
c.setConnectTimeout(10000); c.setReadTimeout(20000);
c.setRequestProperty("Accept", "application/json");
c.setRequestProperty("Authorization", "Bearer " + token);
int status = c.getResponseCode();
InputStream in = status < 400 ? c.getInputStream() : c.getErrorStream();
if (in == null) throw new IOException("HTTP " + status);
ByteArrayOutputStream out = new ByteArrayOutputStream();
try (InputStream stream = in) {
byte[] buffer = new byte[4096]; int n;
while ((n = stream.read(buffer)) != -1) out.write(buffer, 0, n);
}
if (status < 200 || status >= 300) throw new IOException("HTTP " + status);
JSONObject result = new JSONObject(out.toString("UTF-8"));
JSONArray items = result.getJSONArray("items");
} finally { c.disconnect(); }import Foundation
// Run in an async context; token is read from Keychain.
let base = "https://cv.ssite.vip/api/v1"
var request = URLRequest(url: URL(string: base + "/me")!)
request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Accept")
let (data, response) = try await URLSession.shared.data(for: request)
guard let http = response as? HTTPURLResponse,
(200..<300).contains(http.statusCode) else { throw URLError(.badServerResponse) }
let account = try JSONSerialization.jsonObject(with: data)# pip install requests
import requests
base = "https://cv.ssite.vip/api/v1"
with requests.Session() as session:
session.headers['Accept'] = 'application/json'
config = session.get(base + '/config', timeout=20)
config.raise_for_status()
print(config.json()['templates'])
# Set Authorization after login for private calls.
# session.headers['Authorization'] = 'Bearer ' + token
# r = session.get(base + '/cvs', timeout=20); r.raise_for_status()using System.Net.Http;
using System.Net.Http.Headers;
using System.Text.Json;
// Inside an async method; token is stored securely by the app.
using var http = new HttpClient { BaseAddress = new Uri("https://cv.ssite.vip/api/v1/") };
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
using var response = await http.GetAsync("cvs?page=1&limit=20");
response.EnsureSuccessStatusCode();
using var json = JsonDocument.Parse(await response.Content.ReadAsStringAsync());
var items = json.RootElement.GetProperty("items");Workflow: load config → sign in → store token → list CVs → create/edit data → share url when published. Show UI immediately and fetch data in the background. Do not automatically repeat create/delete requests after a connection failure; check the list first.
Images are uploaded through the server to ImageKit. Check image_upload_enabled; use multipart POST with data (full JSON string) and photo (JPEG/PNG/WebP, max 5 MB). Never ship ImageKit keys in a client app.
curl -X POST 'https://cv.ssite.vip/api/v1/cvs' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-F 'data=<cv.json' -F '[email protected]'
# For an existing CV use POST /cvs/123 with complete CV data.curl --fail 'https://cv.ssite.vip/api/v1/cvs/123/pdf' -H 'Authorization: Bearer YOUR_TOKEN' -o CV.pdfTo remove only the photo, PATCH remove_photo: true. If direct_pdf_enabled is false, print the published CV page or generate a PDF locally from authorized CV data. All five templates are designed as single-column text without photos in print/PDF; this is not ATS certification.
/cv/{slug} | Public CV URL |
/embed/{slug} | Same-origin embedding only |
/pdf/{slug} | Optional public PDF |
/browse?q={encoded-url} | Internal CV browser |
Sign in with an existing admin account. Read /admin/settings first and send all editable values on save; omitted public fields may be cleared or reset. The private key is never returned; leaving it blank retains it, while clear_imagekit: true removes it.
{
"site_name": "CV vip \u0633\u064a\u0631\u0629 \u0630\u0627\u062a\u064a\u0629",
"base_url": "https://cv.ssite.vip",
"contact_email": "[email protected]",
"imagekit_public": "YOUR_PUBLIC_KEY",
"imagekit_endpoint": "https://ik.imagekit.io/YOUR_ID",
"imagekit_private": "",
"clear_imagekit": false
}curl 'https://cv.ssite.vip/api/v1/admin/cvs?page=1&limit=20' -H 'Authorization: Bearer ADMIN_TOKEN'
curl 'https://cv.ssite.vip/api/v1/admin/settings' -H 'Authorization: Bearer ADMIN_TOKEN'
# Save the complete edited settings in settings.json first.
curl -X POST 'https://cv.ssite.vip/api/v1/admin/settings' -H 'Authorization: Bearer ADMIN_TOKEN' -H 'Content-Type: application/json' --data-binary @settings.json
curl -X POST 'https://cv.ssite.vip/api/v1/admin/cvs/123/toggle' -H 'Authorization: Bearer ADMIN_TOKEN' -H 'Content-Type: application/json' -d '{"published":false}'Admins can use the same /cvs/{id} routes to edit or delete any CV. The server verifies authorization on each request. Never embed a shared admin token in distributed software.
{"error":"Authentication required."}400 | Invalid input |
401 | Invalid credentials or token |
403 | Insufficient permission or hosting security rejection |
404 | Route/CV missing or inaccessible |
409 | Conflict, e.g. registered email |
413 | Request too large |
429 | Rate limit exceeded |
500 | Server error |
502 | Image upload service failure |
503 | Service or PDF unavailable |
General rate: 300 requests/minute per IP; login 20 attempts/15 min, registration 10/hour, saving 50/account and IP/hour, PDF 15/15 min. JSON limit approximately 2 MB. Respect 429 and back off.
If you receive HTML or a 403 instead of JSON, test direct config, check Document Root, Rewrite, and WAF/ModSecurity/Cloudflare rules. If login succeeds but /me fails, verify Authorization reaches PHP. Do not disable authentication or server security.