Skip to Content

CreatePostUpload

POST
/posts/v1/projects/{project_id}/feeds/{feed_id}/posts/upload

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Path Parameters

project_id*project_id
feed_id*feed_id

Request Body

required
application/json
{
  "type": "object",
  "properties": {
    "org_id": {
      "type": "string",
      "examples": [
        "OR98234j23"
      ],
      "title": "org_id"
    },
    "creator_id": {
      "type": "string",
      "examples": [
        "Tg6Rf4e2W1"
      ],
      "title": "creator_id"
    },
    "description": {
      "type": "string",
      "examples": [
        "A short description."
      ],
      "title": "description",
      "maxLength": 280
    },
    "content_type": {
      "examples": [
        "MEDIA_TYPE_VIDEO"
      ],
      "title": "content_type",
      "$ref": "#/components/schemas/common.v1.MediaType",
      "$ref-value": {
        "type": "string",
        "title": "MediaType",
        "enum": [
          "MEDIA_TYPE_UNSPECIFIED",
          "MEDIA_TYPE_IMAGE",
          "MEDIA_TYPE_VIDEO"
        ]
      }
    },
    "file_name": {
      "type": "string",
      "examples": [
        "clip.mp4"
      ],
      "title": "file_name"
    },
    "video_quality": {
      "examples": [
        "VIDEO_QUALITY_PRO"
      ],
      "title": "video_quality",
      "$ref": "#/components/schemas/common.v1.VideoQuality",
      "$ref-value": {
        "type": "string",
        "title": "VideoQuality",
        "enum": [
          "VIDEO_QUALITY_UNSPECIFIED",
          "VIDEO_QUALITY_BASIC",
          "VIDEO_QUALITY_SHORTS",
          "VIDEO_QUALITY_PRO"
        ]
      }
    }
  },
  "title": "CreatePostUploadRequest",
  "additionalProperties": false
}
org_id?string
creator_id?string
description?string
content_type?unknown
file_name?string
video_quality?unknown

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/posts.v1.PostUpload",
  "$ref-value": {
    "type": "object",
    "properties": {
      "post_id": {
        "type": "string",
        "examples": [
          "Mn0bVc9xZ8"
        ],
        "title": "post_id"
      },
      "content_id": {
        "type": "string",
        "examples": [
          "LmNoPqR678"
        ],
        "title": "content_id"
      },
      "poster_id": {
        "type": "string",
        "examples": [
          "Z9Y8X7W6V5"
        ],
        "title": "poster_id"
      },
      "content_upload_url": {
        "type": "string",
        "examples": [
          "https://cdn.example.com/upload"
        ],
        "title": "content_upload_url"
      },
      "poster_upload_url": {
        "type": "string",
        "examples": [
          "https://cdn.example.com/upload"
        ],
        "title": "poster_upload_url"
      },
      "upload_expires": {
        "examples": [
          "2026-01-15T10:30:00Z"
        ],
        "title": "upload_expires",
        "$ref": "#/components/schemas/google.protobuf.Timestamp",
        "$ref-value": {
          "type": "string",
          "examples": [
            "2023-01-15T01:30:15.01Z",
            "2024-12-25T12:00:00Z"
          ],
          "format": "date-time",
          "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
        }
      }
    },
    "title": "PostUpload",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/posts/v1/projects/Bq4y3QB38S/feeds/F4edRI23XL/posts/upload'

Success

application/json

{
  "$ref": "#/components/schemas/posts.v1.PostUpload",
  "$ref-value": {
    "type": "object",
    "properties": {
      "post_id": {
        "type": "string",
        "examples": [
          "Mn0bVc9xZ8"
        ],
        "title": "post_id"
      },
      "content_id": {
        "type": "string",
        "examples": [
          "LmNoPqR678"
        ],
        "title": "content_id"
      },
      "poster_id": {
        "type": "string",
        "examples": [
          "Z9Y8X7W6V5"
        ],
        "title": "poster_id"
      },
      "content_upload_url": {
        "type": "string",
        "examples": [
          "https://cdn.example.com/upload"
        ],
        "title": "content_upload_url"
      },
      "poster_upload_url": {
        "type": "string",
        "examples": [
          "https://cdn.example.com/upload"
        ],
        "title": "poster_upload_url"
      },
      "upload_expires": {
        "examples": [
          "2026-01-15T10:30:00Z"
        ],
        "title": "upload_expires",
        "$ref": "#/components/schemas/google.protobuf.Timestamp",
        "$ref-value": {
          "type": "string",
          "examples": [
            "2023-01-15T01:30:15.01Z",
            "2024-12-25T12:00:00Z"
          ],
          "format": "date-time",
          "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
        }
      }
    },
    "title": "PostUpload",
    "additionalProperties": false
  }
}