Rethink Behavioral Health Service Lines API

The ServiceLines API from Rethink Behavioral Health — 5 operation(s) for servicelines.

GitHub OpenAPI

Operations 5

GET /api/v1/ServiceLines Returns all Service Lines for the current Company Account #
POST /api/v1/ServiceLines/add Adds new Service Line to the current Company Account #
POST /api/v1/ServiceLines/update Updates existing Service Line #
POST /api/v1/ServiceLines/delete Deletes Service Line by id #
POST /api/v1/ServiceLines/reactivate Reactivates deleted Service Line by id #

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/rethink-behavioral-health:rethink-behavioral-health-servicelines-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

rethink-behavioral-health-servicelines-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rethink.Api Service Lines API
  version: v1
security:
- Bearer: []
tags:
- name: ServiceLines
paths:
  /api/v1/ServiceLines:
    get:
      tags:
      - ServiceLines
      summary: Returns all Service Lines for the current Company Account
      parameters:
      - name: IncludeDeleted
        in: query
        description: Indicates whether response includes deleted records or not
        schema:
          type: boolean
          example: true
        example: true
      - name: After
        in: query
        description: All records with Last Modified Date Time after the date timestamp will be returned.
        schema:
          type: string
          format: date-time
          example: '2021-12-30T00:00:00Z'
        example: '2021-12-30T00:00:00Z'
      - name: PageSize
        in: query
        description: Data page size
        schema:
          maximum: 50
          minimum: 10
          type: integer
          format: int32
          example: 10
        example: 10
      - name: CurrentPage
        in: query
        description: Data page number
        schema:
          maximum: 2147483647
          minimum: 1
          type: integer
          format: int32
          example: 1
        example: 1
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceLineGetResponseSearchResponse'
        '400':
          description: Invalid account
      operationId: getApiV1ServiceLines
      x-operation-id-source: derived
  /api/v1/ServiceLines/add:
    post:
      tags:
      - ServiceLines
      summary: Adds new Service Line to the current Company Account
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceLineAddRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ServiceLineAddRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ServiceLineAddRequest'
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: Service Line added
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceLineResponse'
        '400':
          description: Invalid input, object invalid or current Service Line exists
      operationId: postApiV1ServiceLinesAdd
      x-operation-id-source: derived
  /api/v1/ServiceLines/update:
    post:
      tags:
      - ServiceLines
      summary: Updates existing Service Line
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceLineUpdateRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ServiceLineUpdateRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ServiceLineUpdateRequest'
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: Service Line updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceLineResponse'
        '400':
          description: Invalid input, object invalid, current Service Line doesn't exist or deleted or Service Line with specified name already exists
      operationId: postApiV1ServiceLinesUpdate
      x-operation-id-source: derived
  /api/v1/ServiceLines/delete:
    post:
      tags:
      - ServiceLines
      summary: Deletes Service Line by id
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceLineDeleteRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ServiceLineDeleteRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ServiceLineDeleteRequest'
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: Service Line deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceLineDeleteResponse'
        '400':
          description: Invalid input, invalid id, current Service Line doesn't exist or already deleted
      operationId: postApiV1ServiceLinesDelete
      x-operation-id-source: derived
  /api/v1/ServiceLines/reactivate:
    post:
      tags:
      - ServiceLines
      summary: Reactivates deleted Service Line by id
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceLineDeleteRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ServiceLineDeleteRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ServiceLineDeleteRequest'
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: Service Line reactivated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceLineDeleteResponse'
        '400':
          description: Invalid input, invalid id, current Service Line doesn't exist or not deleted or Service Line with specified name already exists
      operationId: postApiV1ServiceLinesReactivate
      x-operation-id-source: derived
components:
  schemas:
    ServiceLineDeleteResponse:
      type: object
      properties:
        serviceLineId:
          type:
          - integer
          - 'null'
          format: int32
          example: 1234
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    ServiceLineUpdateRequest:
      required:
      - serviceLineId
      - serviceLineName
      type: object
      properties:
        serviceLineId:
          type: integer
          format: int32
          example: 1111
        serviceLineName:
          maxLength: 100
          minLength: 0
          type: string
          example: BST
        serviceLineDescription:
          maxLength: 150
          minLength: 0
          type:
          - string
          - 'null'
          example: Basic Skills Training
        isActiveServiceLine:
          type:
          - boolean
          - 'null'
          example: true
      additionalProperties: false
    ServiceLineGetResponse:
      type: object
      properties:
        serviceLineId:
          type: integer
          format: int32
          example: 1111
        serviceLineName:
          type:
          - string
          - 'null'
          example: BST
        serviceLineDescription:
          type:
          - string
          - 'null'
          example: Basic Skills Training
        isActiveServiceLine:
          type: boolean
          example: true
        dateCreated:
          type: string
          format: date-time
          example: '2020-12-10T17:45:58.453'
        dateLastModified:
          type:
          - string
          - 'null'
          format: date-time
          example: '2020-12-24T10:15:06.127'
        dateDeleted:
          type:
          - string
          - 'null'
          format: date-time
          example: '2021-01-15T13:45:47.237'
      additionalProperties: false
    ResponseStatus:
      type: object
      properties:
        status:
          type:
          - string
          - 'null'
          example: success
        messages:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
    ServiceLineDeleteRequest:
      required:
      - serviceLineId
      type: object
      properties:
        serviceLineId:
          type: integer
          format: int32
          example: 1234
      additionalProperties: false
    ServiceLineAddRequest:
      required:
      - serviceLineName
      type: object
      properties:
        serviceLineName:
          maxLength: 100
          minLength: 0
          type: string
          example: BST
        serviceLineDescription:
          maxLength: 150
          minLength: 0
          type:
          - string
          - 'null'
          example: Basic Skills Training
        isActiveServiceLine:
          type:
          - boolean
          - 'null'
          example: true
      additionalProperties: false
    ServiceLineGetResponseSearchResponse:
      type: object
      properties:
        count:
          type: integer
          format: int32
        totalDataCount:
          type: integer
          format: int32
        totalPages:
          type: integer
          format: int32
        pageSize:
          type: integer
          format: int32
        currentPage:
          type: integer
          format: int32
        data:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ServiceLineGetResponse'
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    ServiceLineResponse:
      type: object
      properties:
        serviceLineId:
          type:
          - integer
          - 'null'
          format: int32
          example: 1111
        serviceLineName:
          type:
          - string
          - 'null'
          example: BST
        serviceLineDescription:
          type:
          - string
          - 'null'
          example: Basic Skills Training
        isActiveServiceLine:
          type:
          - boolean
          - 'null'
          example: true
        dateCreated:
          type: string
          format: date-time
          example: '2020-12-10T17:45:58.453'
        dateLastModified:
          type:
          - string
          - 'null'
          format: date-time
          example: '2020-12-24T10:15:06.127'
        dateDeleted:
          type:
          - string
          - 'null'
          format: date-time
          example: '2021-01-15T13:45:47.237'
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: apiKey
      description: "JWT Authorization header using the Bearer scheme. <br /><br /> \n                      Enter 'Bearer' [space] and then your token in the text input below.\n                      <br /><br />Example: 'Bearer 12345abcdef'"
      name: Authorization
      in: header