---
title: "创建永久存储或者是自我销毁的一贴"
method: POST
path: "/paste/"
tags: ["Paste"]
---

# 创建永久存储或者是自我销毁的一贴

`POST /paste/`

只有在登陆的状态下才能创建永久的一贴

## Headers

- `Authorization` string

## Request body

- PasteCreateRequest
  - `content` string — 内容，最大长度为 16777215(2^24-1) 个字符
  - `expire_count` integer — 访问若干次后自我销毁
  - `expire_minute` integer — 创建若干分钟后自我销毁
  - `lang` string — 语言类型
  - `password` string — 密码
  - `self_destruct` boolean — 是否自我销毁

## Response `201`

Created

- PasteCreateResponse
  - `code` integer
  - `key` string

## Other responses

- `default` — Default response

---

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