---
title: "Create an Object."
method: POST
path: "/v1/objects"
tags: ["objects"]
---

# Create an Object.

`POST /v1/objects`

Create a new Object with content and metadata. The Object will be assigned a unique ID.

## Request body

- ObjectCreateParameters — Parameters required to create a new Object.
  - `name` string, required — The name of the Object.
  - `content_type` 'unspecified' | 'text' | 'binary' | 'gzip' | 'tar' | 'tgz', required
  - `metadata` object, nullable — User defined metadata to attach to the object for organization.
  - `ttl_ms` integer, nullable — Optional lifetime of the object in milliseconds, after which the object is automatically deleted. Time starts ticking after the object is created.

## Response `200`

Object created successfully. Returns the Object with metadata.

- ObjectView — An Object represents a stored data entity with metadata.
  - `id` string, required — The unique identifier of the Object.
  - `name` string, required — The name of the Object.
  - `state` 'UPLOADING' | 'READ_ONLY' | 'DELETED' | 'ERROR', required
  - `size_bytes` integer, nullable — The size of the Object content in bytes (null until uploaded).
  - `content_type` 'unspecified' | 'text' | 'binary' | 'gzip' | 'tar' | 'tgz', required
  - `create_time_ms` integer, required — The creation time of the Object in milliseconds since epoch.
  - `delete_after_time_ms` integer, nullable — The time after which the Object will be deleted in milliseconds since epoch.
  - `metadata` object, nullable — User defined metadata to attach to the Object for organization.
  - `upload_url` string, nullable — Presigned URL for uploading content to S3 (only present on create).

## Other responses

- `400` — Bad request. Invalid content or parameters.
- `401` — Unauthorized. Invalid or missing authentication.
- `403` — Forbidden. Account does not have devbox capability.
- `500` — Internal server error.

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/e9dc776053e4/schema)
