API da Just IT
Uma API REST para empresas Top Employer publicarem, atualizarem e gerirem vagas de forma programática — as mesmas ações da consola, sem a consola.
Precisa de uma subscrição Top Employer ativa e de uma chave de API, gerada na sua própria conta em /recruit/api.
Autenticação
Envie a sua chave como bearer token em cada pedido.
Authorization: Bearer YOUR_KEY
URL base
https://justit.pt
Erros
Todos os erros voltam em JSON com esta forma:
{ "error": "invalid_api_key", "message": "..." }| HTTP | error | Significado |
|---|---|---|
| 401 | missing_api_key | No Authorization header sent |
| 401 | invalid_api_key | The key doesn't exist or was revoked |
| 403 | not_top_employer | The key's company doesn't currently have an active Top Employer subscription |
| 400 | invalid_json | The request body isn't valid JSON |
| 400 | invalid_body | A field failed validation — message names which one |
| 400 | unknown_category_slug | categorySlug isn't one GET /reference returned |
| 400 | unknown_location_slug | locationSlug isn't one GET /reference returned |
| 400 | unknown_tech_tag_slug | a techTags[].slug isn't one GET /reference returned |
| 400 | unknown_language_slug | a languages[].slug isn't one GET /reference returned |
| 404 | job_not_found | No job with that id belongs to your company |
| 409 | job_has_applications | DELETE refused — pause the job instead |
Endpoints
GET /api/v1/reference
Categorias, localizações, tecnologias e idiomas falados — como slugs — mais os enums fixos abaixo. Use estes slugs ao criar ou atualizar uma vaga; nunca precisa dos ids internos deste produto.
curl https://justit.pt/api/v1/reference \ -H "Authorization: Bearer YOUR_KEY"
{
"categories": [{ "slug": "backend-development", "label": "Backend Development" }, ...],
"locations": [{ "slug": "lisboa", "name": "Lisboa", "country": "Portugal" }, ...],
"techTags": [{ "slug": "typescript", "label": "TypeScript" }, ...],
"languages": [{ "slug": "english", "label": "English" }, ...],
"enums": {
"seniority": ["junior", "mid", "senior", "lead"],
"workModel": ["remote", "hybrid", "office"],
"salaryPeriod": ["hour", "day", "month", "year"],
"employmentType": ["permanent", "fixed_term", "contractor", "freelance", "internship"],
"jobLanguage": ["pt", "en"],
"skillLevel": ["basic", "intermediate", "advanced", "expert"]
}
}GET /api/v1/jobs
Todas as vagas da sua empresa, independentemente do estado.
curl https://justit.pt/api/v1/jobs \ -H "Authorization: Bearer YOUR_KEY"
{
"jobs": [
{
"id": "...", "slug": "senior-backend-engineer-...", "title": "...",
"status": "published", "language": "en",
"publishedAt": "2026-10-01T00:00:00.000Z", "expiresAt": "2026-10-31T00:00:00.000Z",
"path": "/en/jobs/...", "url": "https://justit.pt/en/jobs/..."
}
]
}GET /api/v1/jobs/:id
A mesma forma da resposta de criação/atualização abaixo, mais todos os campos da vaga.
POST /api/v1/jobs
Cria uma vaga. Defina "publish": true para a publicar de imediato, ou omita (ou defina como false) para guardar um rascunho.
curl https://justit.pt/api/v1/jobs \
-X POST \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Senior Backend Engineer",
"description": "...",
"language": "en",
"seniority": "senior",
"workModel": "remote",
"categorySlug": "backend-development",
"salaryMin": 3500,
"salaryMax": 5000,
"salaryPeriod": "month",
"salaryMonths": 14,
"employmentType": "permanent",
"techTags": [{ "slug": "typescript", "level": "advanced", "required": true }],
"publish": true
}'{ "id": "...", "slug": "senior-backend-engineer-...", "url": "https://justit.pt/en/jobs/...", "status": "published" }A job open to more than one contract type can give each one its own salary — the primary type (the first entry in employmentTypes) always uses the top-level salaryMin/salaryMax/salaryBasis above; any other accepted type's own range goes intypeSalaries, keyed by that contract type:
{
"title": "Senior Backend Engineer",
"description": "...",
"language": "en",
"seniority": "senior",
"workModel": "remote",
"categorySlug": "backend-development",
"employmentTypes": ["permanent", "freelance"],
"salaryMin": 3500,
"salaryMax": 5000,
"salaryPeriod": "month",
"salaryMonths": 14,
"salaryBasis": "net",
"typeSalaries": {
"freelance": { "salaryMin": 300, "salaryMax": 400, "salaryPeriod": "day", "salaryBasis": "gross" }
},
"publish": true
}PUT /api/v1/jobs/:id
O mesmo corpo do pedido do POST — isto substitui a vaga inteira, não é uma atualização parcial. Envie todos os campos, não apenas os que mudou.
Campos da vaga
O corpo do pedido para POST e PUT.
| field | type | Obrigatório | Nota |
|---|---|---|---|
| title | string | required | |
| description | string | required | |
| language | "pt" | "en" | required | the ad's own text language |
| seniority | "junior" | "mid" | "senior" | "lead" | required | |
| workModel | "remote" | "hybrid" | "office" | required | |
| categorySlug | string | required | see GET /reference |
| locationSlug | string | null | required unless workModel is remote | see GET /reference |
| salaryMin | number | required | > 0 |
| salaryMax | number | required | ≥ salaryMin |
| salaryPeriod | "hour" | "day" | "month" | "year" | required | |
| salaryMonths | number | null | only when salaryPeriod is “month” | 12–14 |
| salaryBasis | "gross" | "net" | optional, default gross | basis of the primary contract type's own salaryMin/salaryMax above |
| employmentType | "permanent" | "fixed_term" | "contractor" | "freelance" | "internship" | required unless employmentTypes is given | a job's single/primary contract type |
| employmentTypes | ("permanent" | "fixed_term" | "contractor" | "freelance" | "internship")[] | required unless employmentType is given | a job open to more than one contract type (e.g. permanent + freelance); takes priority over employmentType if both are given |
| typeSalaries | { [employmentType]: { salaryMin, salaryMax, salaryPeriod, salaryMonths?, salaryBasis? } } | optional | a distinct salary for an additional accepted contract type beyond the primary one (e.g. a gross B2B day-rate next to a net permanent salary); each key must be one of the job's own employmentType(s), other than the primary (first) one, which always uses the top-level salary fields above |
| techTags | { slug, level?, required? }[] | optional | level: basic|intermediate|advanced|expert |
| languages | { slug, level? }[] | optional | spoken-language requirement, not the ad's own language |
| externalApplyUrl | string | optional | |
| expiresAt | string | null | optional | yyyy-mm-dd; ignored if in the past |
| publish | boolean | optional, default false | false saves a draft |
| salaryPublic | boolean | optional, default true | hiding salary needs a paid plan |
POST /api/v1/jobs/:id/pause · POST /api/v1/jobs/:id/publish
Pause retira uma vaga publicada; publish reativa um rascunho ou vaga pausada (sujeito ao mesmo limite de créditos de anúncio/Top Employer que a consola já aplica).
{ "ok": true }DELETE /api/v1/jobs/:id
Elimina um rascunho ou vaga pausada. Uma vaga com candidaturas reais não pode ser eliminada — pause-a em alternativa.
