UNET API - v0.0.0
    Preparing search index...

    Type Alias CreatePostInput

    Everything first-party UNET clients can publish. Text-only posts need just content. Media makes the request multipart; limits mirror the app (≤10 images, one voice/video OR audio track, audio can't be combined with images/voice). Needs the posts:write permission.

    type CreatePostInput = {
        content?: string;
        longFormContent?: string;
        pinnedContinuationPart?: string;
        gifUrl?: string;
        hashtags?: string[];
        topicId?: number;
        topicName?: string;
        quotePostId?: number;
        quoteCommentId?: number;
        commentPermission?: CommentPermission;
        commentAllowedUserIds?: number[];
        isNsfw?: boolean;
        isAiContent?: boolean;
        allowTranslation?: boolean;
        federateExclude?: boolean;
        place?: { id: string; name?: string; lat: number; lon: number };
        scheduledAt?: string | Date;
        images?: Blob[];
        voice?: Blob;
        voiceDuration?: number;
        videoDuration?: number;
        voiceWaveform?: number[];
        audio?: Blob;
        audioDuration?: number;
        idempotencyKey?: string;
    }
    Index
    content?: string
    longFormContent?: string

    Long-form body; content then acts as the short lead.

    pinnedContinuationPart?: string
    gifUrl?: string
    hashtags?: string[]
    topicId?: number
    topicName?: string
    quotePostId?: number
    quoteCommentId?: number
    commentPermission?: CommentPermission
    commentAllowedUserIds?: number[]

    With commentPermission: "selected_users".

    isNsfw?: boolean
    isAiContent?: boolean
    allowTranslation?: boolean
    federateExclude?: boolean

    Don't federate this post (ActivityPub).

    place?: { id: string; name?: string; lat: number; lon: number }
    scheduledAt?: string | Date

    Schedule instead of publishing now.

    images?: Blob[]

    Up to 10 images (JPEG, PNG, WebP, GIF, HEIC).

    voice?: Blob

    One voice note or video (MP3, M4A, OGG, WebM, AAC, WAV, MP4, MOV). Needs voiceDuration / videoDuration.

    voiceDuration?: number

    Length of the voice note in milliseconds (required with a voice note).

    videoDuration?: number

    Length of the video in milliseconds (required with a voice video).

    voiceWaveform?: number[]

    Up to 200 amplitude values for the player.

    audio?: Blob

    An audio post (MP3, OGG, M4A, WAV, WebM; up to 10 MB).

    audioDuration?: number

    Length of the audio post in seconds.

    idempotencyKey?: string

    Reuse the same key when retrying a failed request so it can never double-post. Auto-generated if omitted.