Rethink Behavioral Health Company Account API

The CompanyAccount API from Rethink Behavioral Health — 8 operation(s) for companyaccount.

GitHub OpenAPI

Operations 8

GET /api/v1/locations Returns Company Account Locations by account id #
GET /api/v1/locations/search Returns Company Account Locations by account id #
GET /api/v1/staffcredentials returns Company Account Staff Credentials by account id #
POST /api/v1/locations/add Adds batch of new company locations #
POST /api/v1/locations/update Updates existing company location #
POST /api/v1/locations/deletebyids Deletes company locations by ids #
POST /api/v1/locations/deletebyname Delete Company Account Location by names #
POST /api/v1/locations/reactivate Reactivates deleted locations #

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-companyaccount-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-companyaccount-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rethink.Api Company Account API
  version: v1
security:
- Bearer: []
tags:
- name: CompanyAccount
paths:
  /api/v1/locations:
    get:
      tags:
      - CompanyAccount
      summary: Returns Company Account Locations by account id
      description: 'You can add filter params to the query string;

        For now you can use ''?includeDeleted=true'' to get all account locations'
      parameters:
      - name: IncludeDeleted
        in: query
        schema:
          type: boolean
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: Returns all locations for your account
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ProviderLocation'
      operationId: getApiV1Locations
      x-operation-id-source: derived
  /api/v1/locations/search:
    get:
      tags:
      - CompanyAccount
      summary: Returns Company Account Locations by account id
      description: You can add filter params to the query string
      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: Returns all locations for your account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderLocationSearchResponse'
      operationId: getApiV1LocationsSearch
      x-operation-id-source: derived
  /api/v1/staffcredentials:
    get:
      tags:
      - CompanyAccount
      summary: returns Company Account Staff Credentials by account id
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/StaffCredential'
        '400':
          description: Bad request (Invalid account)
      operationId: getApiV1Staffcredentials
      x-operation-id-source: derived
  /api/v1/locations/add:
    post:
      tags:
      - CompanyAccount
      summary: Adds batch of new company locations
      description: 'Possible errors are:

        ''Invalid input for models fields'',

        ''You are trying to create location with the same Street1, Street2, StateAbbreviation, Zip'''
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/AddLocationsRequestModel'
          text/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/AddLocationsRequestModel'
          application/*+json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/AddLocationsRequestModel'
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: If any of batch models was created
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AddLocationsResponseModel'
        '400':
          description: If all models in batch werent created
      operationId: postApiV1LocationsAdd
      x-operation-id-source: derived
  /api/v1/locations/update:
    post:
      tags:
      - CompanyAccount
      summary: Updates existing company location
      description: 'Possible errors are:

        ''Invalid input for models fields'',

        ''You are trying to update existing location with the same Street1, Street2, StateAbbreviation, Zip as in location that has already existed'''
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/UpdateLocationsRequestModel'
          text/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/UpdateLocationsRequestModel'
          application/*+json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/UpdateLocationsRequestModel'
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: If any of batch models was created
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UpdateLocationsResponseModel'
        '400':
          description: If all models in batch werent updated
      operationId: postApiV1LocationsUpdate
      x-operation-id-source: derived
  /api/v1/locations/deletebyids:
    post:
      tags:
      - CompanyAccount
      summary: Deletes company locations by ids
      description: 'Possible errors are:

        ''Cannot find location with this id'',

        ''Location was already deleted'',

        ''Location was assigned to staff member or client'''
      requestBody:
        description: Array of company location ids
        content:
          application/json:
            schema:
              type: array
              items:
                type: integer
                format: int32
            example:
            - 3933
            - 3934
          text/json:
            schema:
              type: array
              items:
                type: integer
                format: int32
            example:
            - 3933
            - 3934
          application/*+json:
            schema:
              type: array
              items:
                type: integer
                format: int32
            example:
            - 3933
            - 3934
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: If any of batch models was deleted
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DeleteLocationByIdResponseModel'
        '400':
          description: If all models in batch werent deleted
      operationId: postApiV1LocationsDeletebyids
      x-operation-id-source: derived
  /api/v1/locations/deletebyname:
    post:
      tags:
      - CompanyAccount
      summary: Delete Company Account Location by names
      description: 'Possible errors are:

        ''Cannot find location with this name'',

        ''Location was already deleted'',

        ''Location was assigned to staff member or client'',

        ''Location is belong to another user'''
      requestBody:
        description: Array of company location names
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
            example:
            - test3
          text/json:
            schema:
              type: array
              items:
                type: string
            example:
            - test3
          application/*+json:
            schema:
              type: array
              items:
                type: string
            example:
            - test3
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: If any of batch models was deleted
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DeleteLocationByNameResponseModel'
        '400':
          description: If all models in batch werent deleted
      operationId: postApiV1LocationsDeletebyname
      x-operation-id-source: derived
  /api/v1/locations/reactivate:
    post:
      tags:
      - CompanyAccount
      summary: Reactivates deleted locations
      description: 'Possible errors are:

        ''Cannot find location with this name'',

        ''Cannot reactivate existing locations'',

        ''You are trying to reactivate existing location with the same Street1, Street2, StateAbbreviation, Zip as in location that has already existed'''
      requestBody:
        description: Array of Company Account Location ids
        content:
          application/json:
            schema:
              type: array
              items:
                type: integer
                format: int32
            example:
            - 3933
            - 3934
          text/json:
            schema:
              type: array
              items:
                type: integer
                format: int32
            example:
            - 3933
            - 3934
          application/*+json:
            schema:
              type: array
              items:
                type: integer
                format: int32
            example:
            - 3933
            - 3934
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: string
        '200':
          description: If any of batch models was reactivated
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReactivateLocationResponceModel'
        '400':
          description: If all models in batch werent reactivated
      operationId: postApiV1LocationsReactivate
      x-operation-id-source: derived
components:
  schemas:
    UpdateLocationsRequestModel:
      required:
      - address1
      - city
      - isBillingProvider
      - isMainLocation
      - locationName
      - state
      - zip
      type: object
      properties:
        locationId:
          type: integer
          format: int32
          example: 2802
        isMainLocation:
          type: boolean
          example: false
        isBillingProvider:
          type: boolean
          example: false
        locationName:
          maxLength: 75
          minLength: 1
          type: string
          example: Temecula, CA 834
        billingProviderName:
          maxLength: 35
          type:
          - string
          - 'null'
          example: Oakland123
        taxId:
          pattern: ^\d{9}$
          type:
          - string
          - 'null'
          example: '841647103'
        npiNumber:
          type:
          - string
          - 'null'
          example: '1538406616'
        taxonomyCode:
          pattern: ^\d{3}[A-Z]{2}\d{4}[A-Z]$
          type:
          - string
          - 'null'
          example: 103TA0400X
        countryId:
          type:
          - integer
          - 'null'
          format: int32
          example: 23
        address1:
          minLength: 1
          type: string
          example: 10850 S US Highway 1, Ste 2 upd
        address2:
          type:
          - string
          - 'null'
        city:
          minLength: 1
          type: string
          example: Port St Lucie
        state:
          maxLength: 2
          minLength: 1
          type: string
          example: FL
        zip:
          minLength: 1
          type: string
          example: '77455'
        email:
          maxLength: 50
          type:
          - string
          - 'null'
          format: email
          example: ktorsiello112@behaviorbasicsin.com
        phone:
          maxLength: 13
          pattern: ^\d+$
          type:
          - string
          - 'null'
          example: '4567876545679'
        fax:
          maxLength: 13
          pattern: ^\d+$
          type:
          - string
          - 'null'
          example: '7724630444112'
        additionalLocationId:
          type:
          - string
          - 'null'
          example: '772463'
        additionalLocationIdentifierType:
          $ref: '#/components/schemas/AdditionalLocationIdentifierTypes'
      additionalProperties: false
    DeleteLocationByIdResponseModel:
      type: object
      properties:
        locationId:
          type: integer
          format: int32
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    UpdateLocationsResponseModel:
      type: object
      properties:
        locationId:
          type: integer
          format: int32
          example: 2802
        isMainLocation:
          type: boolean
          example: false
        isBillingProvider:
          type: boolean
          example: false
        locationName:
          type:
          - string
          - 'null'
          example: Temecula, CA 834
        billingProviderName:
          type:
          - string
          - 'null'
          example: Oakland123
        taxId:
          type:
          - string
          - 'null'
          example: '841647103'
        npiNumber:
          type:
          - string
          - 'null'
          example: '1538406616'
        taxonomyCode:
          type:
          - string
          - 'null'
          example: 103TA0400X
        countryId:
          type:
          - integer
          - 'null'
          format: int32
          example: 23
        address1:
          type:
          - string
          - 'null'
          example: 10850 S US Highway 1, Ste 2 upd
        address2:
          type:
          - string
          - 'null'
        city:
          type:
          - string
          - 'null'
          example: Port St Lucie
        state:
          type:
          - string
          - 'null'
          example: FL
        zip:
          type:
          - string
          - 'null'
          example: '77455'
        email:
          type:
          - string
          - 'null'
          example: ktorsiello112@behaviorbasicsin.com
        phone:
          type:
          - string
          - 'null'
          example: '4567876545679'
        fax:
          type:
          - string
          - 'null'
          example: '7724630444112'
        additionalLocationId:
          type:
          - string
          - 'null'
          example: '772463'
        additionalLocationIdentifierType:
          $ref: '#/components/schemas/AdditionalLocationIdentifierTypes'
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    DeleteLocationByNameResponseModel:
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    ResponseStatus:
      type: object
      properties:
        status:
          type:
          - string
          - 'null'
          example: success
        messages:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
    AddLocationsResponseModel:
      type: object
      properties:
        locationId:
          type: integer
          format: int32
          example: 2802
        isMainLocation:
          type: boolean
          example: false
        isBillingProvider:
          type: boolean
          example: false
        locationName:
          type:
          - string
          - 'null'
          example: Temecula, CA 834
        billingProviderName:
          type:
          - string
          - 'null'
          example: Oakland123
        taxId:
          type:
          - string
          - 'null'
          example: '841647103'
        npiNumber:
          type:
          - string
          - 'null'
          example: '1538406616'
        taxonomyCode:
          type:
          - string
          - 'null'
          example: 103TA0400X
        countryId:
          type:
          - integer
          - 'null'
          format: int32
          example: 23
        address1:
          type:
          - string
          - 'null'
          example: 10850 S US Highway 1, Ste 2 upd
        address2:
          type:
          - string
          - 'null'
        city:
          type:
          - string
          - 'null'
          example: Port St Lucie
        state:
          type:
          - string
          - 'null'
          example: FL
        zip:
          type:
          - string
          - 'null'
          example: '77455'
        email:
          type:
          - string
          - 'null'
          example: ktorsiello112@behaviorbasicsin.com
        phone:
          type:
          - string
          - 'null'
          example: '4567876545679'
        fax:
          type:
          - string
          - 'null'
          example: '7724630444112'
        additionalLocationId:
          type:
          - string
          - 'null'
          example: '772463'
        additionalLocationIdentifierType:
          $ref: '#/components/schemas/AdditionalLocationIdentifierTypes'
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    ProviderLocationSearchResponse:
      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/ProviderLocation'
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    ReactivateLocationResponceModel:
      type: object
      properties:
        locationId:
          type: integer
          format: int32
        responseStatus:
          $ref: '#/components/schemas/ResponseStatus'
      additionalProperties: false
    AddLocationsRequestModel:
      required:
      - address1
      - city
      - isBillingProvider
      - isMainLocation
      - locationName
      - state
      - zip
      type: object
      properties:
        isMainLocation:
          type: boolean
          example: false
        isBillingProvider:
          type: boolean
          example: false
        locationName:
          maxLength: 75
          minLength: 1
          type: string
          example: Temecula, CA 834
        billingProviderName:
          maxLength: 35
          type:
          - string
          - 'null'
          example: Oakland123
        taxId:
          pattern: ^\d{9}$
          type:
          - string
          - 'null'
          example: '841647103'
        npiNumber:
          type:
          - string
          - 'null'
          example: '1538406616'
        taxonomyCode:
          pattern: ^\d{3}[A-Z]{2}\d{4}[A-Z]$
          type:
          - string
          - 'null'
          example: 103TA0400X
        countryId:
          type:
          - integer
          - 'null'
          format: int32
          example: 23
        address1:
          minLength: 1
          type: string
          example: 10850 S US Highway 1, Ste 2 upd
        address2:
          type:
          - string
          - 'null'
          example: 10850 S US Highway 1, Ste 2 upd
        city:
          minLength: 1
          type: string
          example: Port St Lucie
        state:
          maxLength: 2
          minLength: 1
          type: string
          example: FL
        zip:
          minLength: 1
          type: string
          example: '77455'
        email:
          maxLength: 50
          type:
          - string
          - 'null'
          format: email
          example: ktorsiello112@behaviorbasicsin.com
        phone:
          maxLength: 13
          pattern: ^\d+$
          type:
          - string
          - 'null'
          example: '4567876545679'
        fax:
          maxLength: 13
          pattern: ^\d+$
          type:
          - string
          - 'null'
          example: '7724630444112'
        additionalLocationId:
          type:
          - string
          - 'null'
          example: '772463'
        additionalLocationIdentifierType:
          $ref: '#/components/schemas/AdditionalLocationIdentifierTypes'
      additionalProperties: false
    StaffCredential:
      type: object
      properties:
        credentialId:
          type: integer
          format: int32
        credentialName:
          type:
          - string
          - 'null'
        credentialType:
          type:
          - string
          - 'null'
        description:
          type:
          - string
          - 'null'
        isInactive:
          type: boolean
      additionalProperties: false
    AdditionalLocationIdentifierTypes:
      enum:
      - 0
      - 1
      - 2
      type: integer
      format: int32
    ProviderLocation:
      type: object
      properties:
        locationId:
          type: integer
          format: int32
          example: 2802
        isMainLocation:
          type: boolean
          example: false
        isBillingProvider:
          type: boolean
          example: false
        locationName:
          type:
          - string
          - 'null'
          example: Temecula, CA 834
        billingProviderName:
          type:
          - string
          - 'null'
          example: Oakland123
        taxId:
          type:
          - string
          - 'null'
          example: '841647103'
        npiNumber:
          type:
          - string
          - 'null'
          example: '1538406616'
        taxonomyCode:
          type:
          - string
          - 'null'
          example: 103TA0400X
        countryId:
          type:
          - integer
          - 'null'
          format: int32
          example: 23
        address1:
          type:
          - string
          - 'null'
          example: 10850 S US Highway 1, Ste 2 upd
        address2:
          type:
          - string
          - 'null'
        city:
          type:
          - string
          - 'null'
          example: Port St Lucie
        state:
          type:
          - string
          - 'null'
          example: FL
        zip:
          type:
          - string
          - 'null'
          example: '7745'
        email:
          type:
          - string
          - 'null'
          example: ktorsiello112@behaviorbasicsin.com
        phone:
          type:
          - string
          - 'null'
          example: '4567876545679'
        fax:
          type:
          - string
          - 'null'
          example: '7724630444112'
        additionalLocationId:
          type:
          - string
          - 'null'
          example: '14321321231'
        additionalLocationIdentifierType:
          $ref: '#/components/schemas/AdditionalLocationIdentifierTypes'
        dateCreated:
          type: string
          format: date-time
          example: '2012-04-23T18:25:43'
        dateLastModified:
          type: string
          format: date-time
          example: '2012-04-23T18:25:43'
        dateDeleted:
          type:
          - string
          - 'null'
          format: date-time
          example: '2012-04-23T18:25:43'
      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