---
title: "Get Dataset Upload Endpoint"
method: POST
path: "/v1/accounts/{account_id}/datasets/{dataset_id}:getUploadEndpoint"
tags: ["Gateway"]
---

# Get Dataset Upload Endpoint

`POST /v1/accounts/{account_id}/datasets/{dataset_id}:getUploadEndpoint`

## Request

- Base URL: `https://api.fireworks.ai/inference`
- URL: `https://api.fireworks.ai/inference/v1/accounts/{account_id}/datasets/{dataset_id}:getUploadEndpoint`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/docs/v1/accounts/:account_id/datasets/:dataset_id:getUploadEndpoint/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `account_id` string, required
- `dataset_id` string, required

## Request body

- GatewayGatewayGetDatasetUploadEndpointBody
  - `filenameToSize` object, required: A mapping from the file name to its size in bytes.
  - `readMask` string: The fields to be returned in the response. If empty or "*", all fields will be returned.

## Response `200`

A successful response.

- GatewayGetDatasetUploadEndpointResponse
  - `filenameToSignedUrls` object

---

[API](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api.md) - [All operations](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireworks/apis/fireworks-ai-anthropic-compatible-messages-api/revisions/954d6bc5d922?raw)
