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

# Run an action

> Run one action as the user, like searching their Notion.



## OpenAPI

````yaml POST /platform/v1/users/{uid}/actions/run
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}/actions/run:
    post:
      tags:
        - Connected apps
      summary: Run Action
      description: >-
        Run one action as the user, on their connected app. Only for this app's
        own user (the tenant comes from

        the key's app and `uid`) and only for apps this app may connect.
      operationId: run_action_platform_v1_users__uid__actions_run_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/ActionRunIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Run Action Platform V1 Users  Uid  Actions Run 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:
    ActionRunIn:
      properties:
        name:
          type: string
          maxLength: 80
          title: Name
        arguments:
          additionalProperties: true
          type: object
          title: Arguments
        timezone:
          type: string
          maxLength: 64
          title: Timezone
          default: UTC
        reads_only:
          type: boolean
          title: Reads Only
          default: true
      type: object
      required:
        - name
      title: ActionRunIn
    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.