API Reference¶
Interactive Documentation¶
Explore the full and interactive API documentation Pontotel using our Swagger UI interface.
About Interactive Documentation
The Swagger UI interface allows you to:
- View all available endpoints
- See full data templates
- Test requests directly (Try it out)
- Copy Code Examples
- Explore schemas and validations
OpenAPI specification¶
The full OpenAPI specification is available at:
https://apis.pontotel.com.br/pontotel/api/v4/openapi.json
Interactive Interface¶
How to Use Try It Out¶
1. Get it first.¶
Before testing any endpoint:
- Go to the section Authentication
- Expand the endpoint POST /login/
- Click Try it out
- Fill in your credentials
- Click "Execute"
- Copy
access_tokenresponse
2. Authorize interface¶
- Click the button "Authorize" at the top of the page (lock icon)
- In the field Value, paste the token in the format:
Text Only - Click "Authorize"
- Click "Close"
3. Test endpoints¶
Now you can test any endpoint:
- Navigate to desired endpoint
- Click Try it out
- Fill in the necessary parameters
- Click "Execute"
- See the full answer below
Test Environment
Always use the environment of Sandbox for testing via Swagger UI. Never test in production with real data.
Fast Navigation by Category¶
Authentication¶
POST /login/- Log in and get token
Organizational Structure¶
GET /empregadores/- Listing employersPOST /empregadores/- Create an employerGET /locais-trabalho/- List locationsGET /grupos/- List groups
People¶
GET /usuarios/- List usersPOST /usuarios/- Create userGET /empregados/- List employeesPOST /empregados/- Create employee
Shift¶
GET /escalas/- List scalesPOST /escalas/- Create scaleGET /jornadas/- List journeysGET /marcacoes/- List markingsPOST /marcacoes/- Registration
Absences¶
GET /ferias/- List holidaysPOST /ferias/- Registration holidayGET /afastamentos/- List removalsPOST /afastamentos/- Registration removalGET /justificativas/- List justifications
Download Specification¶
You can download OpenAPI specification for use in other tools:
Compatible Tools¶
- Postman - Automated collections and tests
- Insomnia - REST Client
- Swagger Editor - Online Editor
- OpenAPI Generator - SDK Generation
API Versions¶
| Version | Status | Endpoint Base |
|---|---|---|
| v4 | Current | https://apis.pontotel.com.br/pontotel/api/v4/ |
| v3 | https://apis.pontotel.com.br/pontotel/api/v3/ | |
| v2 | Sunset | - What? |