---
title: "Retrieves the attachment token for the account and the target period"
method: GET
path: "/v1.0/target-unit-accounts/{accountId}/performance-account-template-data-report/attachment-token"
tags: ["Target Period Performance Account Template Data Report of the Account"]
---

# Retrieves the attachment token for the account and the target period

`GET /v1.0/target-unit-accounts/{accountId}/performance-account-template-data-report/attachment-token`

## Request

- Base URL: `http://localhost:8082/api`
- URL: `http://localhost:8082/api/v1.0/target-unit-accounts/{accountId}/performance-account-template-data-report/attachment-token`
- Auth: HTTP bearer

## Path parameters

- `accountId` integer, required

## Query parameters

- `targetPeriodType` 'TP5' | 'TP6' | 'TP7' | 'TP8' | 'TP9', required
- `fileAttachmentUuid` string, uuid, required

## Response `200`

OK

- FileToken
  - `token` string
  - `tokenExpirationMinutes` integer

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-04-02** `0be05036d2c8`: 3 info
  - added the new enum value `TP7` to the `query` request parameter `targetPeriodType`
  - added the new enum value `TP8` to the `query` request parameter `targetPeriodType`
  - added the new enum value `TP9` to the `query` request parameter `targetPeriodType`
- **2025-09-11** `15b32331a1ac`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/beis/apis/api-documentation/changes/v1.0/target-unit-accounts/:accountId/performance-account-template-data-report/attachment-token/get.md)

---

[API](https://skmtc.dev/beis/apis/api-documentation.md) - [All operations](https://skmtc.dev/beis/apis/api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/beis/apis/api-documentation/revisions/2da910b8e923?raw)
