List All Occupations
GET/v1/users/onboardings/occupations
Tag: api-baas-get-all-onboarding-occupation
Description: Retrieve a list of all occupations filtered by name. This endpoint is used during onboarding when the user needs to select their occupation.
Request
Query Parameters
Default value: 1
Page number.
Possible values: <= 100
Default value: 20
Page size. Max size is 100.
Possible values: [name, cod_cbo]
Page sort attribute.
Possible values: [asc, desc]
Default value: asc
Page order.
Occupation name to search.
Header Parameters
The nonce ID is a UUID (v4) used to uniquely identify the request. All requests must have an identifier.
Possible values: [pt-BR, en-US]
Indicates the preferred language. Defaults to Brazilian Portuguese if unspecified.
UUID (v4) of the product that the request should use. Send it explicitly when the authenticated user has more than one product or when the integration must select a specific product. If omitted and the endpoint does not require it, the API uses the authenticated user's default product.
UUID (v4) of the user on whose behalf the request should run within the selected product. If omitted, the request runs as the authenticated user. Requires x-product-uuid.
Responses
- 200
- 400
- 401
- 422
The occupations returned successfully.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Page number.
Page size.
Page total.
Total of elements.
data object[]required
Occupations data.
Occupation CBO code (Brazilian Classification of Occupations).
Occupation CBO number.
Occupation name.
Occupation creation date.
{
"page": 1,
"page_size": 20,
"page_total": 20,
"total": 100,
"data": [
{
"cod_cbo": 252205,
"cbo": 252205,
"name": "Contador",
"created_at": "2024-01-01T00:00:00Z"
}
]
}
If any required params are missing or has invalid format or type.
User authentication failed.
If any required params are missing or has invalid format or type.