Lassare Slack API

The Slack API from Lassare — 3 operation(s) for slack.

GitHub OpenAPI

Operations 3

POST /v1/slack/validate Validate Slack Id #
GET /v1/slack/workspace/{workspace_id} Check Workspace Status #
GET /v1/slack/oauth/callback Slack Oauth Callback #

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/lassare-com:lassare-com-slack-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

lassare-com-slack-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lassare Gateway Slack API
  description: Human-in-the-Loop (HITL) middleware for AI agents
  version: 1.0.0
tags:
- name: Slack
paths:
  /v1/slack/validate:
    post:
      tags:
      - Slack
      summary: Validate Slack Id
      description: 'Validate a Slack user or channel ID and return display information.


        This endpoint is called by the Portal to validate Slack IDs before saving

        them as approver notification channels.


        Args:

        request: Slack ID and workspace ID to validate


        Returns:

        Validation result with display name and handle'
      operationId: validate_slack_id_v1_slack_validate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateSlackRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateSlackResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/slack/workspace/{workspace_id}:
    get:
      tags:
      - Slack
      summary: Check Workspace Status
      description: 'Check if the Lassare app is installed in a Slack workspace.


        This endpoint is called by the Portal when a user saves a Slack workspace ID

        to verify the Lassare app is properly installed before allowing configuration.


        Args:

        workspace_id: Slack workspace ID (T...)


        Returns:

        Workspace status with app installation info'
      operationId: check_workspace_status_v1_slack_workspace__workspace_id__get
      parameters:
      - name: workspace_id
        in: path
        required: true
        schema:
          type: string
          title: Workspace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/slack/oauth/callback:
    get:
      tags:
      - Slack
      summary: Slack Oauth Callback
      description: 'Slack OAuth v2 callback endpoint.


        Flow:

        1. Verify HMAC-signed state → extract company_id + portal_url

        2. Exchange authorization code for bot token

        3. Store bot token + signing secret in Secrets Manager

        4. Create/update SlackWorkspaceAuth in DynamoDB

        5. Redirect to Portal developer-setup with workspace_id


        This endpoint is exempt from API key auth (state is HMAC-signed).'
      operationId: slack_oauth_callback_v1_slack_oauth_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
      - name: state
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: State
      - name: error
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidateSlackResponse:
      properties:
        valid:
          type: boolean
          title: Valid
          description: Whether the ID is valid
        type:
          anyOf:
          - type: string
          - type: 'null'
          title: Type
          description: 'Type: ''user'' or ''channel'''
        displayName:
          anyOf:
          - type: string
          - type: 'null'
          title: Displayname
          description: Display name (real name for users, channel name for channels)
        handle:
          anyOf:
          - type: string
          - type: 'null'
          title: Handle
          description: 'Handle (@username for users, #channel for channels)'
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
          description: Error message if validation failed
      type: object
      required:
      - valid
      title: ValidateSlackResponse
      description: Response for Slack ID validation.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidateSlackRequest:
      properties:
        slackId:
          type: string
          minLength: 1
          title: Slackid
          description: Slack user ID (U...) or channel ID (C...)
        workspaceId:
          type: string
          minLength: 1
          title: Workspaceid
          description: Slack workspace ID (T...)
      type: object
      required:
      - slackId
      - workspaceId
      title: ValidateSlackRequest
      description: Request to validate a Slack user or channel ID.
    WorkspaceStatusResponse:
      properties:
        workspaceId:
          type: string
          title: Workspaceid
          description: Slack workspace ID
        appInstalled:
          type: boolean
          title: Appinstalled
          description: Whether Lassare app is installed
        active:
          type: boolean
          title: Active
          description: Whether the workspace authorization is active
        teamName:
          anyOf:
          - type: string
          - type: 'null'
          title: Teamname
          description: Slack workspace name (if available)
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
          description: Error message if not installed
      type: object
      required:
      - workspaceId
      - appInstalled
      - active
      title: WorkspaceStatusResponse
      description: Response for workspace status check.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError