---
title: "POST /GetArtifact"
method: POST
path: "/GetArtifact"
---

# POST /GetArtifact

`POST /GetArtifact`

Retrieves an artifact from an agent space.

## Request body

- object
  - `agentSpaceId` string, required — Unique identifier of the agent space.
  - `artifactId` string, required — The id of the artifact.

## Response `200`

Success

- GetArtifactOutput
  - `agentSpaceId` string, required — The unique identifier of the agent space that contains the artifact.
  - `artifactId` string, required — The unique identifier of the artifact.
  - `artifact` object, required — The artifact content and type.
    - `contents` string, required — The content of the artifact.
    - `type` 'TXT' | 'PNG' | 'JPEG' | 'MD' | 'PDF' | 'DOCX' | 'DOC' | 'JSON' | 'YAML', required — The file type of the artifact.
  - `fileName` string, required — The file name of the artifact.
  - `updatedAt` string, date-time, required — The date and time the artifact was last updated, in UTC format.

## Other responses

- `480` — ValidationException
- `481` — InternalServerException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException
- `484` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/securityagent.md) · [All operations](https://skmtc.net/aws/apis/securityagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/securityagent/versions/cad56717d636/schema)
