CV vip سيرة ذاتية / DEVELOPER PLATFORM

Build your own experience on CV vip سيرة ذاتية

A unified REST interface for websites, Android and iOS apps, and desktop software, using the same accounts and CVs without another database.

01 / QUICK START

Connection URL & health check

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
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.

02 / AUTHENTICATION

Accounts, authentication & permissions

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 — login
curl -X POST 'https://cv.ssite.vip/api/v1/login' \
  -H 'Content-Type: application/json' \
  -d '{"email":"[email protected]","password":"YOUR_PASSWORD"}'
JSON — sample response
{
    "token": "YOUR_64_HEX_TOKEN",
    "token_type": "Bearer",
    "expires_in": 7776000,
    "user": {
        "id": 1,
        "email": "[email protected]",
        "role": "user"
    }
}
cURL — authenticated
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'
The server assigns user or admin; API registration cannot create admins. Regular users cannot read other users’ drafts or edit their CVs. Store tokens in Android Keystore, iOS Keychain or OS secret storage; for web apps use secure server sessions, and never log tokens or passwords.
03 / API REFERENCE

All supported endpoints

HTTPRelative routeAccessPurposeSuccess
GET/configPublicPlatform settings, templates, fields, image/PDF availability200
POST/registerPublicRegister with email, password; returns token201
POST/loginPublicSign in with email, password; returns token200
GET/publicPublicPublished CVs only; page, limit200
GET/public/{slug}PublicGet a published CV by slug200
GET/meSigned-in userAccount identity and role200
POST/logoutSigned-in userRevoke current token200
GET/cvsSigned-in userList own CVs; page, limit200
POST/cvsSigned-in userCreate a CV with JSON or multipart201
GET/cvs/{id}Owner / adminRead complete editable CV200
PUT/cvs/{id}Owner / adminReplace all CV data with JSON200
PATCH/cvs/{id}Owner / adminPartial top-level update; sections replaced as a whole200
POST/cvs/{id}Owner / adminFull update, optionally upload photo via multipart200
DELETE/cvs/{id}Owner / adminDelete CV; returns remote photo deletion result200
GET/cvs/{id}/pdfOwner / adminDownload text PDF if Chromium is configured200 PDF
GET/admin/cvsAdmin onlyAll private and public CVs; page, limit200
GET/admin/settingsAdmin onlyRead settings; never returns ImageKit private key200
POST/admin/settingsAdmin onlySave site and ImageKit settings200
POST/admin/cvs/{id}/toggleAdmin onlySet published or send {} to toggle200

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.

04 / DATA MODEL

CV data model & fields

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.

FieldsType and constraints
namestring · 120 (required)
headline, locationstring · 160
summarystring · 3000
emailemail · 254
phonestring · 80
skillsstring · 2000 (newline-separated)
interestsstring · 1500
website, linkedin, github, portfolioHTTP(S) URL · 500
templatemodern, ats, executive, creative, academic
typegeneral, student, professional, technical, executive, academic, creative
languagear | en
color#RRGGBB
published, show_contact, show_photo, remove_photoboolean (true / false)
sectionsobject → arrays (max 30 entries per section)

CV sections

KeySectionEntry fields
experienceWork experiencerole, company, location, start, end, description
educationEducationdegree, school, location, start, end, description
projectsProjectstitle, link, description
certificatesCertificates & coursestitle, issuer, date, link, description
languagesLanguagestitle, level
awardsAwards & achievementstitle, date, description
volunteerVolunteeringrole, company, start, end, description
publicationsPublications & researchtitle, issuer, date, link, description
referencesProfessional referencestitle, role, description
customAdditional sectionstitle, description

Entry strings are limited to 200 characters, descriptions 2500, and link URLs 500. Maximum 30 CVs per account.

JSON — CV create / full update
{
    "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 — create from cv.json
curl -X POST 'https://cv.ssite.vip/api/v1/cvs' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' --data-binary @cv.json
cURL — patch, publish, delete
# 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'
JSON — private CV response (excerpt)
{
    "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.

05 / INTEGRATIONS

Build websites, mobile & desktop apps

Web / JavaScript

Same-origin web UI, or your own backend for external sites.

Android / iOS

Native HTTPS clients and interfaces built from config and data.

Desktop / POS

Windows, macOS and Linux apps using HTTP and JSON.

The current server has no cross-origin CORS policy. JavaScript on another domain needs your own backend proxy or a narrowly configured CORS policy by the platform administrator. Do not use no-cors or disable TLS verification. Native mobile and desktop HTTP clients are not subject to browser CORS.
JavaScript — same origin
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 — external website backend
<?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.
Android / Java — HttpURLConnection
// 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(); }
iOS / Swift — URLSession
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)
Python — desktop / backend
# 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()
C# / .NET — Windows desktop
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.

06 / MEDIA & DOCUMENTS

Image uploads, print & PDF

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 — multipart upload
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 — download private PDF
curl --fail 'https://cv.ssite.vip/api/v1/cvs/123/pdf' -H 'Authorization: Bearer YOUR_TOKEN' -o CV.pdf

To 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
07 / ADMINISTRATION

Connect an admin dashboard

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.

JSON — admin settings example
{
    "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 — admin moderation
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.

08 / ERRORS & SECURITY

Errors, limits & troubleshooting

JSON — error
{"error":"Authentication required."}
400Invalid input
401Invalid credentials or token
403Insufficient permission or hosting security rejection
404Route/CV missing or inaccessible
409Conflict, e.g. registered email
413Request too large
429Rate limit exceeded
500Server error
502Image upload service failure
503Service 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.