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

# Create a connect link

> A hosted page where a user connects one app.



## OpenAPI

````yaml POST /platform/v1/users/{uid}/connect-links
openapi: 3.1.0
info:
  title: Constella API
  version: v1
  description: Cloud memory for your own AI tools and for apps with many users.
servers:
  - url: https://api.constella.app
security: []
tags:
  - name: Your memory
  - name: Your app's users
  - name: Connected apps
paths:
  /platform/v1/users/{uid}/connect-links:
    post:
      tags:
        - Connected apps
      summary: Create Connect Link
      description: >-
        A link (30 minutes) the user opens to connect `integration`. Afterwards
        they land on

        `return_url?status=connected|failed|cancelled&integration=...&state=...`.
      operationId: create_connect_link_platform_v1_users__uid__connect_links_post
      parameters:
        - name: uid
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            title: Uid
            example: u_123
          description: >-
            Your own id for this user, like your database id (not an email).
            1-128 characters, no spaces or slashes.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectLinkIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Create Connect Link Platform V1 Users  Uid  Connect
                  Links Post
        '401':
          description: The key is wrong, revoked or replaced (`bad_key`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: This key may not do this (`not_allowed`, `missing_scope`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such tool, user or item.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests (`rate_limited`). Wait and try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - appKey: []
components:
  schemas:
    ConnectLinkIn:
      properties:
        integration:
          type: string
          title: Integration
        return_url:
          type: string
          maxLength: 2000
          title: Return Url
        state:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: State
      type: object
      required:
        - integration
        - return_url
      title: ConnectLinkIn
    Error:
      type: object
      properties:
        detail:
          type: object
          properties:
            code:
              type: string
              example: bad_key
            message:
              type: string
              example: This key is wrong, revoked or replaced.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    appKey:
      type: http
      scheme: bearer
      description: A project key (cak_live_...). From your server only.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.