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

# Get Activity

> Gets an activity for an organization



## OpenAPI

````yaml https://console.lomaplatform.com/api/org/v1/openapi get /api/org/v1/activities/{id}
openapi: 3.1.0
info:
  title: LOMA Organization API
  version: 2.78.1
  description: >-
    API for managing organizational data on LOMA.

    ### Authentication


    Your API Key should be passed in the `API-Key` header formatted as
    `KEY_ID:KEY_SECRET`.


    Organization admins can create API keys in the LOMA console.
  contact:
    email: support@lomaplatform.com
servers:
  - url: https://console.lomaplatform.com
security: []
paths:
  /api/org/v1/activities/{id}:
    get:
      tags:
        - Activities
      summary: Get Activity
      description: Gets an activity for an organization
      responses:
        '200':
          description: 200 OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  created_at:
                    type: string
                  updated_at:
                    type: string
                  start_date:
                    type: string
                  end_date:
                    type: string
                  status:
                    type: string
                  spend:
                    type: string
                  executed_by:
                    type:
                      - string
                      - 'null'
                  notes:
                    type:
                      - string
                      - 'null'
                  user:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      email:
                        type: string
                    required:
                      - id
                      - name
                      - email
                  preset:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                    required:
                      - id
                      - name
                  category:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                    required:
                      - id
                      - name
                  kpis:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        value:
                          type:
                            - number
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                        is_positive_better:
                          type:
                            - boolean
                            - 'null'
                      required:
                        - id
                        - name
                        - value
                        - description
                        - is_positive_better
                  locations:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        external_id:
                          type: string
                      required:
                        - id
                        - name
                        - external_id
                required:
                  - id
                  - created_at
                  - updated_at
                  - start_date
                  - end_date
                  - status
                  - spend
                  - executed_by
                  - notes
                  - user
                  - preset
                  - category
                  - kpis
                  - locations
        '401':
          description: 401 Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      status:
                        type: number
                      message:
                        type: string
                    required:
                      - status
                      - message
                required:
                  - error
                example:
                  error:
                    status: 401
                    message: Invalid API Key
        '404':
          description: 404 Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      status:
                        type: number
                      message:
                        type: string
                    required:
                      - status
                      - message
                required:
                  - error
                example:
                  error:
                    status: 404
                    message: Not found
      security:
        - apiKeyHeader: []
components:
  securitySchemes:
    apiKeyHeader:
      type: apiKey
      in: header
      name: API-Key
      description: API Key for the organization

````