Rulebase Data Sources API

The Data Sources API from Rulebase — 2 operation(s) for data sources.

Operations 2

GET /data_sources Get data sources #
POST /data_sources/{data_source_id}/organization_data_sources Create data sources by data source id organization data sources #

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/rulebase:rulebase-data-sources-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

rulebase-data-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rulebase API2 Data Sources API
  version: 0.0.1
tags:
- name: Data Sources
paths:
  /data_sources:
    get:
      responses:
        '200':
          description: The data source catalogue
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        type:
                          type: string
                          nullable: true
                          enum:
                          - customer_interaction
                          - notification
                          - issue_tracking
                          - knowledge_base
                          - data_warehouse
                        customer_interaction_type:
                          type: string
                          nullable: true
                          enum:
                          - ticket
                          - sales_call
                      required:
                      - id
                      - name
                      - type
                      - customer_interaction_type
                required:
                - data
      tags:
      - Data Sources
      summary: Get data sources
      x-summary-source: derived
      operationId: getDataSources
      x-operation-id-source: derived
  /data_sources/{data_source_id}/organization_data_sources:
    post:
      parameters:
      - schema:
          type: string
        required: true
        name: data_source_id
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organization_data_source:
                  type: object
                  properties:
                    reason_for_request_conversation_field:
                      type: string
                      nullable: true
                    import_conversations_enabled:
                      anyOf:
                      - type: boolean
                      - type: string
                      - type: number
                      - nullable: true
                    data:
                      type: object
                      properties:
                        api_key:
                          type: string
                          nullable: true
                        api_token:
                          type: string
                          nullable: true
                        api_secret:
                          type: string
                          nullable: true
                        webhook_secret:
                          type: string
                          nullable: true
                        username:
                          type: string
                          nullable: true
                        password:
                          type: string
                          nullable: true
                        token:
                          type: string
                          nullable: true
                        type:
                          type: string
                          nullable: true
                        token_type:
                          type: string
                          nullable: true
                        email:
                          type: string
                          nullable: true
                        client_id:
                          type: string
                          nullable: true
                        client_secret:
                          type: string
                          nullable: true
                    user_data:
                      type: object
                      properties:
                        subdomain:
                          type: string
                          nullable: true
                        url:
                          type: string
                          nullable: true
              required:
              - organization_data_source
      responses:
        '201':
          description: Connection created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      last_synced_at:
                        type: string
                        nullable: true
                      reason_for_request_conversation_field:
                        type: string
                        nullable: true
                      import_conversations_enabled:
                        type: boolean
                      data_source:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          type:
                            type: string
                            nullable: true
                            enum:
                            - customer_interaction
                            - notification
                            - issue_tracking
                            - knowledge_base
                            - data_warehouse
                          customer_interaction_type:
                            type: string
                            nullable: true
                            enum:
                            - ticket
                            - sales_call
                        required:
                        - id
                        - name
                        - type
                        - customer_interaction_type
                      slack_incoming_webhook:
                        type: object
                        nullable: true
                        properties:
                          id:
                            type: string
                          channel:
                            type: string
                          channel_id:
                            type: string
                          configuration_url:
                            type: string
                        required:
                        - id
                        - channel
                        - channel_id
                        - configuration_url
                      complaints_jira_request_type:
                        type: object
                        nullable: true
                        properties:
                          id:
                            type: string
                          external_id:
                            type: string
                          name:
                            type: string
                        required:
                        - id
                        - external_id
                        - name
                    required:
                    - id
                    - name
                    - last_synced_at
                    - reason_for_request_conversation_field
                    - import_conversations_enabled
                    - data_source
                    - slack_incoming_webhook
                    - complaints_jira_request_type
                required:
                - data
        '400':
          description: Validation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                required:
                - error
                - errors
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
        '409':
          description: An active Jira connection already exists for this site
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    enum:
                    - duplicate_jira_site
                  existing_connection_id:
                    type: string
                required:
                - error
                - code
                - existing_connection_id
        '503':
          description: Rails organization unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                - error
      tags:
      - Data Sources
      summary: Create data sources by data source id organization data sources
      x-summary-source: derived
      operationId: postDataSourcesByDataSourceIdOrganizationDataSources
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Rulebase organization API key