---
agentTools:
  projectIndex: https://uspacy.readme.io/llms.txt
---

# Show activity

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Activities service",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://{domain}.uspacy.ua",
      "description": "Ukrainian server"
    },
    {
      "url": "https://{domain}.uspacy.eu",
      "description": "EU server"
    },
    {
      "url": "https://{domain}.uspacy.com.br",
      "description": "Brazilian server"
    },
    {
      "url": "https://{domain}.uspacy.com",
      "description": "International server"
    }
  ],
  "tags": [
    {
      "name": "activities"
    }
  ],
  "paths": {
    "/activities/v1/activities/{activityId}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/activityId"
        }
      ],
      "get": {
        "tags": [
          "activities"
        ],
        "summary": "Show activity",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Activity"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "UnauthorizedError": {
        "description": "Access token is missing or invalid"
      },
      "Forbidden": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "array",
                      "items": {
                        "example": "Forbidden message"
                      }
                    }
                  }
                },
                "status": {
                  "type": "boolean",
                  "example": true
                }
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "Resource not found",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "activityId": {
        "in": "path",
        "name": "activityId",
        "schema": {
          "type": "integer",
          "format": "int64"
        },
        "required": true,
        "description": "Activity ID"
      }
    },
    "schemas": {
      "ActivityStatus": {
        "type": "string",
        "enum": [
          "planned",
          "done",
          "cancelled"
        ]
      },
      "ActivityType": {
        "type": "string",
        "enum": [
          "activity",
          "call",
          "meeting",
          "chat",
          "email"
        ]
      },
      "ActivityPriority": {
        "type": "string",
        "enum": [
          "low",
          "notHigh",
          "neutral",
          "high",
          "veryHigh"
        ]
      },
      "ActivityCrmEntities": {
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "title",
              "owner"
            ],
            "properties": {
              "id": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              },
              "owner": {
                "type": "integer"
              }
            }
          }
        }
      },
      "Activity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/ActivityType"
          },
          "status": {
            "$ref": "#/components/schemas/ActivityStatus"
          },
          "priority": {
            "$ref": "#/components/schemas/ActivityPriority"
          },
          "description": {
            "type": "string"
          },
          "start_time": {
            "type": "integer"
          },
          "end_time": {
            "type": "integer"
          },
          "responsible_id": {
            "type": "integer"
          },
          "company_id": {
            "type": "integer"
          },
          "created_at": {
            "type": "integer"
          },
          "updated_at": {
            "type": "integer"
          },
          "closed_by": {
            "type": [
              "integer",
              "null"
            ]
          },
          "first_closed_by": {
            "type": [
              "integer",
              "null"
            ]
          },
          "closed_at": {
            "type": [
              "integer",
              "null"
            ]
          },
          "first_closed_at": {
            "type": [
              "integer",
              "null"
            ]
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "crm_entities": {
            "$ref": "#/components/schemas/ActivityCrmEntities"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 105,
      "1": 127,
      "2": 10,
      "3": 178,
      "4": 213,
      "5": 45,
      "6": 160,
      "7": 218,
      "8": 192,
      "9": 67,
      "10": 145,
      "11": 50
    }
  }
}
```