Features
Transformations
Transform data (unstrcutured/structured) into the schema of your choice with 3 simple fields:
- input_type
- schema_id or JSON schema
- file_url or input_content (JSON or text)
Example to transform a PDF:
Copy
import requests
url = "https://api.atlos.dev/transformations"
payload = {
"input_type": "pdf",
"file_url": "https://example.com/resume.pdf",
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Full name of the person"
},
"current_title": {
"type": "string",
"description": "Current job title"
}
},
"required": ["name", "current_title"]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)
Example: Extracting data from a Resume
Request:
Copy
{
"file_url": "https://www.atlos.dev/resume.png",
"schema": {
"type": "object",
"properties": {
"applicant": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Full name of the person"
},
"title": {
"type": "string",
"description": "Job title or specialization"
}
},
"required": ["name", "title"]
},
"work_experience": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Job title"
},
"company": {
"type": "string",
"description": "Company name"
},
"location": {
"type": "string",
"description": "Location of the company"
},
"start_date": {
"type": "string",
"description": "Start date of employment"
},
"end_date": {
"type": "string",
"description": "End date of employment"
},
"description": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of responsibilities and achievements"
}
}
}
},
"skills": {
"type": "array",
"items": {
"type": "string",
"description": "List of skills"
}
},
"languages": {
"type": "array",
"items": {
"type": "string",
"description": "List of languages"
}
}
}
}
}
Response:
Copy
{
"status": "success",
"message": "schema extracted successfully",
"data": {
"output": {
"applicant": {
"name": "TONY STARK",
"title": "TECH SPECIALIST"
},
"work_experience": [
{
"title": "CEO",
"company": "Stark Industries, Los Angeles",
"location": "Los Angeles",
"start_date": "Jan 2000",
"end_date": "Dec 2020",
"description": [
"Led the company to become a global leader in tech industry.",
"Pioneered in creating advanced weapon systems."
]
}
],
"skills": [
"Artificial Intelligence",
"Robotics",
"Leadership",
"Innovation"
],
"languages": ["English", "French"]
}
}
}
On this page
Assistant
Responses are generated using AI and may contain mistakes.