POST /paste/create

Body Required

  • file string(binary) Required

Body Required

  • title string
  • text string Required

Responses

  • 200 application/json

    Paste resource response

    Hide response attributes Show response attributes object
    • error boolean
    • timestamp string(date-time)
    • uniqueId string | null
    • message object
      Hide message attributes Show message attributes object
      • title string | null
      • content string
      • createdAt string(date-time)
      • urlSet object
        Hide urlSet attributes Show urlSet attributes object
        • webUrl string(uri)
        • portalUrl string(uri)
        • rawUrl string(uri)
        • shortUrl string(uri)
        • customUrl string(uri)
      • uploader object
        Hide uploader attributes Show uploader attributes object
        • uid integer
        • username string
        • role string

          Values are OWNER, ADMIN, USER, or TESTER.

        • avatar string | null
        • createdAt string(date-time)
        • invitor object
          Hide invitor attributes Show invitor attributes object
          • uid integer
          • username string
          • role string

            Values are OWNER, ADMIN, USER, or TESTER.

          • avatar string | null
          • createdAt string(date-time)
      • requiresPassword boolean
      • isPublic boolean
  • 400 application/json

    Bad request

    Hide response attributes Show response attributes object
    • error boolean
    • timestamp string(date-time)
    • uniqueId string | null
POST /paste/create
curl \
 --request POST 'https://call.xap3y.space/v1/paste/create' \
 --header "X-API-Key: $API_KEY" \
 --header "Content-Type: multipart/form-data" \
 --form "file=@file"
curl \
 --request POST 'https://call.xap3y.space/v1/paste/create' \
 --header "X-API-Key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"title":"string","text":"string"}'
Request examples
{
  "title": "string",
  "text": "string"
}
Response examples (200)
{
  "error": true,
  "timestamp": "2025-05-04T09:42:00Z",
  "uniqueId": "string",
  "message": {
    "title": "string",
    "content": "string",
    "createdAt": "2025-05-04T09:42:00Z",
    "urlSet": {
      "webUrl": "https://example.com",
      "portalUrl": "https://example.com",
      "rawUrl": "https://example.com",
      "shortUrl": "https://example.com",
      "customUrl": "https://example.com"
    },
    "uploader": {
      "uid": 42,
      "username": "string",
      "role": "OWNER",
      "avatar": "string",
      "createdAt": "2025-05-04T09:42:00Z",
      "invitor": {
        "uid": 42,
        "username": "string",
        "role": "OWNER",
        "avatar": "string",
        "createdAt": "2025-05-04T09:42:00Z"
      }
    },
    "requiresPassword": true,
    "isPublic": true
  }
}
Response examples (400)
{
  "error": true,
  "timestamp": "2025-05-04T09:42:00Z",
  "uniqueId": "string"
}