Skip to main content
POST
/
v1
/
persons
/
{id}
/
documents
Upload person document
curl --request POST \
  --url https://api.stardex.ai/v1/persons/{id}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form type=resume_link \
  --form 'title=<string>' \
  --form visible_in_share_links=true
{
  "success": true,
  "data": {
    "id": "eee55555-ffff-0000-1111-222222225555",
    "created_at": "2024-02-01T10:00:00Z",
    "updated_at": "2024-02-01T10:00:00Z",
    "type": "resume_doc",
    "title": "John_Doe_Resume.pdf",
    "link": "https://signed-url.example.com/...",
    "visible_in_share_links": false
  }
}

Authorizations

Authorization
string
header
required

Authenticate with a Bearer token: API key, OAuth token, or session token.

Path Parameters

id
string
required

Person ID

Body

file
file
required

The file to upload. Allowed types: PDF, DOC, DOCX, PNG, JPG, JPEG. Max size: 25 MB.

type
enum<string>
required

Document category: resume_doc, resume_link, cover_letter, reference, additional_links.

Available options:
resume_link,
resume_doc,
cover_letter,
reference,
additional_links
title
string

Document title. Defaults to the original filename if omitted.

Whether to show this document in candidate share links. Defaults to false.

Response

Document uploaded

success
enum<boolean>
required
Available options:
true
data
object
required