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

# Map an emoji action

> Create emoji action mappings for a team. This endpoint is only available for standard and enterprise tier organizations.



## OpenAPI

````yaml post /v1/emojis/actions/{teamId}
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/emojis/actions/{teamId}:
    post:
      tags:
        - Emoji Actions
      description: >-
        Create emoji action mappings for a team. This endpoint is only available
        for standard and enterprise tier organizations.
      parameters:
        - name: teamId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MapEmojisActionDTO'
      responses:
        '200':
          description: Success - Emoji action mappings created successfully
          content:
            application/json:
              example:
                data:
                  ok: true
                  data: {}
                status: true
                message: Emoji action created successfully!
                timestamp: '2025-07-15T11:38:09.817Z'
        '400':
          description: Team ID is required
          content:
            application/json:
              example:
                statusCode: 400
                message: Team ID is required
                error: Bad Request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                statusCode: 401
                message: Unauthorized
                error: Unauthorized
        '403':
          description: Forbidden - Organization tier requirement not met
          content:
            application/json:
              example:
                statusCode: 403
                message: >-
                  This feature is only available for standard and enterprise
                  tier organizations
                error: Forbidden
        '404':
          description: Resource not found!
        '422':
          description: Validation Error
          content:
            application/json:
              example:
                message: Validation failed
                error: Validation Error
                statusCode: 422
                details:
                  - field: emojis
                    errors:
                      - Emoji(s) to map against the action are required
                  - field: flow
                    errors:
                      - Flow to map against the emojis is required
                  - field: action
                    errors:
                      - Action to map against the emojis is required
        '429':
          description: Too many requests!
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                statusCode: 500
                message: Failed to map emoji action
                error: Internal Server Error
        '503':
          description: Service Unavailable
          content:
            application/json:
              example:
                statusCode: 503
                message: Service Unavailable
                error: Service Unavailable
components:
  schemas:
    MapEmojisActionDTO:
      type: object
      properties:
        emojis:
          description: Emojis to map against the action
          example:
            - white_check_mark
          type: array
          items:
            type: string
        flow:
          type: string
          description: Flow to map against the emojis
          example: OUTBOUND
        action:
          type: string
          description: Action to map against the emojis
          example: create_ticket
      required:
        - emojis
        - flow
        - action
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````