> ## Documentation Index
> Fetch the complete documentation index at: https://docs.particle.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# Initiate a Slack workspace OAuth install

> Returns the Slack /oauth/v2/authorize URL the user's browser should be redirected to. The surface (Particle Slack app vs Radar Slack app) is inferred from the calling request — Radar-issuer JWTs install the Radar app; everything else installs the Particle app. JWT auth required; API keys cannot install OAuth on behalf of a user.



## OpenAPI

````yaml /openapi.json post /v1/projects/{projectId}/slack/connections/initiate
openapi: 3.1.0
info:
  description: Public API for Particle — news intelligence, financial data, and analysis.
  title: Particle API
  version: 0.1.0
servers:
  - url: https://api.particle.pro
security:
  - ApiKeyHeader: []
  - BearerAuth: []
paths:
  /v1/projects/{projectId}/slack/connections/initiate:
    post:
      tags:
        - Slack Connections
        - tier:standard
      summary: Initiate a Slack workspace OAuth install
      description: >-
        Returns the Slack /oauth/v2/authorize URL the user's browser should be
        redirected to. The surface (Particle Slack app vs Radar Slack app) is
        inferred from the calling request — Radar-issuer JWTs install the Radar
        app; everything else installs the Particle app. JWT auth required; API
        keys cannot install OAuth on behalf of a user.
      operationId: initiate-slack-connection
      parameters:
        - description: Project ID (base62-encoded).
          in: path
          name: projectId
          required: true
          schema:
            description: Project ID (base62-encoded).
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InitiateSlackConnectionBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitiateSlackConnectionResponseBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PlatformError'
          description: Error
      x-codeSamples:
        - label: cURL
          lang: curl
          source: |-
            curl -X POST \
              -H "X-API-Key: $PARTICLE_API_KEY" \
              -H "Content-Type: application/json" \
              -d '{}' \
              "https://api.particle.pro/v1/projects/{projectId}/slack/connections/initiate"
components:
  schemas:
    InitiateSlackConnectionBody:
      additionalProperties: false
      properties:
        redirect_url:
          description: >-
            URL on the calling surface (platform.particle.pro /
            radar.particle.pro) to redirect the user's browser to after the
            OAuth dance completes. Must match the calling surface's host.
          maxLength: 2000
          minLength: 1
          type: string
      required:
        - redirect_url
      type: object
    InitiateSlackConnectionResponseBody:
      additionalProperties: false
      properties:
        authorize_url:
          type: string
      required:
        - authorize_url
      type: object
    PlatformError:
      additionalProperties: false
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        error_code:
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        resolve:
          $ref: '#/components/schemas/ErrorResolve'
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    ErrorResolve:
      additionalProperties: false
      properties:
        action:
          type: string
        endpoint:
          type: string
        message:
          type: string
        method:
          type: string
        url:
          type: string
      required:
        - message
      type: object
  securitySchemes:
    ApiKeyHeader:
      description: Pass your API key in the X-API-Key header (recommended).
      in: header
      name: X-API-Key
      type: apiKey
    BearerAuth:
      description: Pass your API key as a Bearer token in the Authorization header.
      scheme: bearer
      type: http

````