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
Users¶
GET /usuarios/- List usersPOST /usuarios/- Create userGET /usuarios/{id}/- Get specific userPUT /usuarios/{id}/- Update userDELETE /usuarios/{id}/- Delete user
Employees¶
GET /empregados/- List employeesPOST /empregados/- Create employeeGET /empregados/{id}/- Get specific employeePUT /empregados/{id}/- Update employeeDELETE /empregados/{id}/- Delete employee
Employers¶
GET /empregadores/- Listing employersPOST /empregadores/- Create an employerGET /empregadores/{id}/- Get specific employer
Workplaces¶
GET /locais-trabalho/- List locationsPOST /locais-trabalho/- Create local
Scales and Journeys¶
GET /escalas/- List scalesPOST /escalas/- Create scale
Vacation¶
GET /ferias/- List vacation periodsPOST /ferias/- Registration holiday
Absences¶
GET /afastamentos/- List removalsPOST /afastamentos/- Registration removal
Download Specification¶
You can download OpenAPI specification for use in other tools:
Compatible Tools¶
Import specification on:
- Postman - Automated collections and tests
- Insomnia - REST Client
- Swagger Editor - Online Editor
- OpenAPI Generator - SDK Generation
- Stoplight - Design and documentation
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? |