Gupy Benefits API

Pre-employee benefits.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

PATCH /benefits/automatic-routing-process Update routes to requested automatic routing process #
PATCH /benefits/automatic-routing-process/objection Update automatic routing objection #
PATCH /benefits/transport-voucher/automatic-routing Update transport voucher automatic routing work information #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gupy:gupy-benefits-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gupy-benefits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GUPY ADMISSÃO Benefits API
  version: 1.0.0
  contact:
    name: Gupy Admissão
    url: https://www.gupy.io
  description: 'Authentication: send the token as `Authorization: Bearer `.


    Clients v2 (`public-api-{id}:{centralCompanyId}`), created in the Company Accounts Manager (CAM), get the token by the OAuth2 client credentials flow, using the client id and secret created for the Admission product.


    The token must carry roles of the `admission-api` resource: `public-api.admission.read.*` for GET routes, and `public-api.admission.write.*` for GET, POST, PATCH and DELETE routes.


    A token with an invalid client, issuer or company gets 401. A valid token without the required role gets 403.'
servers:
- url: https://admission.app.gupy.io/api/v1
tags:
- name: Benefits
  description: Pre-employee benefits.
paths:
  /benefits/automatic-routing-process:
    patch:
      summary: Update routes to requested automatic routing process
      tags:
      - Benefits
      description: 'This route accepts two types of input, which can be a route, or one of the divergence types. At least one of the two properties (routes or divergenceType) must exist. If both exist, only the divergenceType property will be considered. Client v2: role `public-api.admission.write.automatic-routing`, `public-api.admission.write.*` or `public-api.admission.*` in the `admission-api` resource.'
      operationId: patchAutomaticRoutingProcess
      security:
      - jwt: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                routingId:
                  type: string
                routes:
                  type: array
                  items:
                    type: object
                    properties:
                      orderRoute:
                        type: number
                      routeWay:
                        type: number
                      distance:
                        type: number
                      boardingPlace:
                        type: string
                      destinationPlace:
                        type: string
                      routeValue:
                        type: number
                      transportationLine:
                        type: string
                      duration:
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d:[0-5]\d$
                        minLength: 8
                        maxLength: 8
                        description: Time duration based on hh:mm:ss format. e.g., 10:10:10
                        example: ''
                      transportType:
                        type: string
                        enum:
                        - BUS
                        - SUBWAY
                        - TRAIN
                        - BRT
                        - LIGHT_RAIL
                        - MONORAIL
                        - TRAM
                        - VAN
                        - AQUABUS
                        - TROLLEYBUS
                        - TUK_TUK
                        - FERRY
                        - BOAT
                        - CABLE_CAR
                        - CHARTER
                        - ON_FOOT
                        - RIVER_TRANSPORT
                      transportDesc:
                        type: string
                      cardId:
                        type: string
                      cardDescription:
                        type: string
                    required:
                    - orderRoute
                    - routeWay
                    - distance
                    - boardingPlace
                    - destinationPlace
                    - routeValue
                    - transportationLine
                    - duration
                    - transportType
                divergenceType:
                  type: string
                  enum:
                  - OUT_OF_SCOPE
                  - NO_ROUTE_FOUND
                metadata:
                  type: object
              required:
              - routingId
      responses:
        '200':
          description: Successful operation
          content:
            application/json: {}
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: 'One or more of the following errors may occur: [Automatic routing process ${routingId} cannot be updated as it is in state ROUTE_RETURNED; Automatic routing process ${routingId} has timed out]'
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          description: 'One or more of the following errors may occur: [must be number; must be string]'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /benefits/automatic-routing-process/objection:
    patch:
      summary: Update automatic routing objection
      tags:
      - Benefits
      description: 'Update the automatic routing objection and the routes of automatic routing process when an objection is accepted. Client v2: role `public-api.admission.write.automatic-routing`, `public-api.admission.write.*` or `public-api.admission.*` in the `admission-api` resource.'
      operationId: patchAutomaticRoutingObjection
      security:
      - jwt: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                routingId:
                  type: string
                objectionStatus:
                  type: boolean
                objectionResponse:
                  type: string
                routes:
                  type: array
                  items:
                    type: object
                    properties:
                      orderRoute:
                        type: number
                      routeWay:
                        type: number
                      distance:
                        type: number
                      boardingPlace:
                        type: string
                      destinationPlace:
                        type: string
                      routeValue:
                        type: number
                      transportationLine:
                        type: string
                      duration:
                        type: string
                        pattern: ^([01]\d|2[0-3]):[0-5]\d:[0-5]\d$
                        minLength: 8
                        maxLength: 8
                        description: Time duration based on hh:mm:ss format. e.g., 10:10:10
                        example: ''
                      transportType:
                        type: string
                        enum:
                        - BUS
                        - SUBWAY
                        - TRAIN
                        - BRT
                        - LIGHT_RAIL
                        - MONORAIL
                        - TRAM
                        - VAN
                        - AQUABUS
                        - TROLLEYBUS
                        - TUK_TUK
                        - FERRY
                        - BOAT
                        - CABLE_CAR
                        - CHARTER
                        - ON_FOOT
                        - RIVER_TRANSPORT
                      transportDesc:
                        type: string
                    required:
                    - orderRoute
                    - routeWay
                    - distance
                    - boardingPlace
                    - destinationPlace
                    - routeValue
                    - transportationLine
                    - duration
                    - transportType
              required:
              - routingId
              - objectionStatus
              - objectionResponse
              - routes
      responses:
        '200':
          description: Successful operation
          content:
            application/json: {}
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: 'One or more of the following errors may occur: [New routes of automatic routing process ${params.routingId} not found; Automatic routing process ${params.routingId} was accepted before objection return;Automatic routing objection from routingId ${params.routingId} not found; Automatic routing objection from routingId ${params.routingId} cannot be updated]'
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          description: 'One or more of the following errors may occur: [must be number; must be string]'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /benefits/transport-voucher/automatic-routing:
    patch:
      summary: Update transport voucher automatic routing work information
      tags:
      - Benefits
      description: 'Persists startTime, endTime, daysByMonth and destinationAddress for automatic transport voucher routing. Client v2: role `public-api.admission.write.automatic-routing`, `public-api.admission.write.*` or `public-api.admission.*` in the `admission-api` resource. Client v1: only `automatic-routing-public-api-*` clients are validated for `AutomaticRoutingProcess:Update`.'
      operationId: patchTransportVoucherAutomaticRouting
      security:
      - jwt: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                preEmployeeId:
                  type: integer
                startTime:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                endTime:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                daysByMonth:
                  type: integer
                  minimum: 1
                  maximum: 31
                destinationAddress:
                  type: object
                  properties:
                    street:
                      type: string
                      minLength: 1
                      maxLength: 255
                      pattern: ^[^,\-]+$
                    number:
                      type: string
                      minLength: 1
                      maxLength: 255
                      pattern: ^[^,\-]+$
                    neighborhood:
                      type: string
                      minLength: 1
                      maxLength: 255
                      pattern: ^[^,\-]+$
                    city:
                      type: string
                      minLength: 1
                      maxLength: 255
                      pattern: ^[^,\-]+$
                    state:
                      type: string
                      minLength: 1
                      maxLength: 2
                      pattern: ^[^,\-]+$
                    zipCode:
                      type: string
                      pattern: ^\d{5}-\d{3}$
                    country:
                      type: string
                      maxLength: 255
                      pattern: ^[^,\-]+$
                  required:
                  - street
                  - number
                  - neighborhood
                  - city
                  - state
                  additionalProperties: false
              required:
              - preEmployeeId
              additionalProperties: false
              dependencies:
                startTime:
                - endTime
                - daysByMonth
                endTime:
                - startTime
                - daysByMonth
                daysByMonth:
                - startTime
                - endTime
              anyOf:
              - required:
                - destinationAddress
              - required:
                - startTime
                - endTime
                - daysByMonth
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      preEmployeeId:
                        type: integer
                      startTime:
                        type:
                        - string
                        - 'null'
                      endTime:
                        type:
                        - string
                        - 'null'
                      daysByMonth:
                        type:
                        - integer
                        - 'null'
                      destinationAddress:
                        type:
                        - object
                        - 'null'
                        properties:
                          street:
                            type: string
                          number:
                            type: string
                          neighborhood:
                            type: string
                          city:
                            type: string
                          state:
                            type: string
                          zipCode:
                            type: string
                          country:
                            type: string
                      updatedAt:
                        type: string
                        format: date-time
                required:
                - result
        '400':
          description: Bad request. Todos os erros vêm no array `errors`. Erros de negócio incluem `code` estável (FEATURE_NOT_ENABLED, NO_BENEFIT_TO_UPDATE, BENEFIT_ALREADY_FILLED, PRE_EMPLOYEE_STATUS_NOT_UPDATABLE) e `message`. Falhas de schema (Ajv) vêm sem `code`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    description: Error list in the standard format. Business errors carry a stable `code`; JSON schema validation failures (Ajv) may come without `code`.
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          description: 'Human-readable message. It may change over time: handle the error by `code`.'
                        code:
                          type: string
                          enum:
                          - FEATURE_NOT_ENABLED
                          - PRE_EMPLOYEE_STATUS_NOT_UPDATABLE
                          - NO_BENEFIT_TO_UPDATE
                          - BENEFIT_ALREADY_FILLED
                          description: Stable business error code. Use it to tell the errors apart instead of relying on `message`.
                      required:
                      - message
                required:
                - errors
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Pre-employee not found for the company
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    description: Error list in the standard format.
                    items:
                      type: object
                      properties:
                        message:
                          type: string
                          description: 'Human-readable message of the business error. It may change over time: handle the error by `code`.'
                        code:
                          type: string
                          enum:
                          - PRE_EMPLOYEE_NOT_FOUND
                          description: Stable business error code. Use it to tell the errors apart instead of relying on `message`.
                      required:
                      - message
                      - code
                required:
                - errors
components:
  responses:
    Forbidden:
      description: Token without the role required by the route and verb
    Unauthorized:
      description: Invalid token, unknown client or company not found
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'JWT of a public API client. Client v2: token by client credentials in the CAM, with the roles `public-api.admission.read.*` (GET) or `public-api.admission.write.*` (GET, POST, PATCH, DELETE) in the `admission-api` resource; the automatic routing routes also accept `public-api.admission.write.automatic-routing`.'
x-provenance:
  method: searched
  source: https://developers.gupy.io/reference
  harvested: '2026-12-03'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://developers.gupy.io/reference/changepreemployeestep.md
  - https://developers.gupy.io/reference/createcontract.md
  - https://developers.gupy.io/reference/createcustomfield.md
  - https://developers.gupy.io/reference/createpreemployee.md
  - https://developers.gupy.io/reference/createtoken.md
  - https://developers.gupy.io/reference/deletecustomfield.md
  - https://developers.gupy.io/reference/listworkflowsteps.md
  - https://developers.gupy.io/reference/patchautomaticroutingobjection.md
  - https://developers.gupy.io/reference/patchautomaticroutingprocess.md
  - https://developers.gupy.io/reference/patchpositionworkshift.md
  - https://developers.gupy.io/reference/patchtransportvoucherautomaticrouting.md
  - https://developers.gupy.io/reference/searchcustomfields.md
  - https://developers.gupy.io/reference/searchpreemployees.md
  - https://developers.gupy.io/reference/startadmission.md
  - https://developers.gupy.io/reference/updatecustomfield.md
  - https://developers.gupy.io/reference/updatecustomfieldsdata.md
  merge:
    pages: 16
    deduped: 40
    conflicts_kept_first: 0