PeerTube Register API

As a visitor, you can use this API to open an account (if registrations are open on that PeerTube instance). As an admin, you should use the dedicated [User creation API](#operation/addUser) instead.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v1/users/ask-send-verify-email Resend the user's email verification link · Resend user verification link #
Ask an LLM
“How do I send a new verification email to a user who lost theirs?”
“Can I resend the email verification link for an existing user?”
Tell an agent
Resend the verification email to {email}.
Send a new verification link to {email} for the user.
POST /api/v1/users/registrations/ask-send-verify-email Resend the registration verification link · Resend verification link to registration request email #
Ask an LLM
“Can I resend the verification email for a registration request?”
“Where do I get a fresh verification link for a pending registration?”
Tell an agent
Resend the registration verification email to {email}.
Send a new verification link for registration {email}.
POST /api/v1/users/{id}/verify-email Verify a user's email address · Verify a user #
Ask an LLM
“How do I confirm a user's email address after they register?”
“Can I verify a pending email change on an existing user account?”
Tell an agent
Verify user {id} with verification string {verificationString}.
Confirm the email change on user {id} using {verificationString} ({isPendingEmail}).
POST /api/v1/users/registrations/{registrationId}/verify-email Verify a registration request email · Verify a registration email #
Ask an LLM
“How do I confirm the email address a new user gave when requesting registration?”
“Can I verify the registration request with its verification string?”
Tell an agent
Verify the registration email for request {registrationId} with {verificationString}.
Confirm the registration request {registrationId} using verification string {verificationString}.
POST /api/v1/users/register Create a user account directly · Register a user #
Ask an LLM
“How do I sign up a user directly on the instance without approval?”
“Can I create a user account with a username, email and password right away?”
Tell an agent
Register user {username} with email {email} and password {password}.
Create a user {username} ({email}) with password {password} and display name {displayName}.
POST /api/v1/users/registrations/request Request registration on an approval-required instance · Request registration #
Ask an LLM
“How do I request registration on an instance that requires approval?”
“What do I send to ask for a new user account when approval is needed?”
Tell an agent
Request registration for {username} with email {email} and password {password}, reason {registrationReason}.
Submit a registration request for {username} ({email}) because {registrationReason}.
POST /api/v1/users/registrations/{registrationId}/accept Approve a registration request · Accept registration #
Ask an LLM
“How do I accept a pending registration request?”
“Can I approve a user's registration and send a moderation response?”
Tell an agent
Accept registration request {registrationId} with response {moderationResponse}.
Approve registration {registrationId} and tell the user {moderationResponse}.
POST /api/v1/users/registrations/{registrationId}/reject Reject a registration request · Reject registration #
Ask an LLM
“How do I turn down a registration request?”
“Can I decline a user's registration request and keep them from getting an email?”
Tell an agent
Reject registration request {registrationId} with response {moderationResponse}.
Decline registration {registrationId} and send {moderationResponse} to the user.
DELETE /api/v1/users/registrations/{registrationId} Delete a registration request · Delete registration #
Ask an LLM
“How do I remove a registration request without creating a user?”
“Will deleting a registration remove the user it created?”
Tell an agent destructive · confirm first
Delete registration request {registrationId}.
Remove the registration entry {registrationId}.
GET /api/v1/users/registrations List pending registration requests · List registrations #
Ask an LLM
“What registration requests are waiting on my instance?”
“Can I filter the pending registrations by state?”
Tell an agent
List pending registrations.
Show {count} registrations matching {search}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/peertube:peertube-register-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

peertube-register-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PeerTube Register API
  version: 8.1.0
  contact:
    name: PeerTube Community
    url: https://joinpeertube.org
  license:
    name: AGPLv3.0
    url: https://github.com/Chocobozzz/PeerTube/blob/master/LICENSE
  x-logo:
    url: https://joinpeertube.org/img/brand.png
    altText: PeerTube Project Homepage
  description: The PeerTube API is built on HTTP(S) and is RESTful.
servers:
- url: https://peertube2.cpy.re
  description: Live Test Server (live data - latest nightly version)
- url: https://peertube3.cpy.re
  description: Live Test Server (live data - latest RC version)
- url: https://peertube.cpy.re
  description: Live Test Server (live data - stable version)
tags:
- name: Register
  description: 'As a visitor, you can use this API to open an account (if registrations are open on

    that PeerTube instance). As an admin, you should use the dedicated User creation

    API instead.'
paths:
  /api/v1/users/ask-send-verify-email:
    post:
      summary: Resend user verification link
      operationId: resendEmailToVerifyUser
      tags:
      - Register
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: User email
              required:
              - email
      responses:
        '204':
          description: successful operation
  /api/v1/users/registrations/ask-send-verify-email:
    post:
      summary: Resend verification link to registration request email
      operationId: resendEmailToVerifyRegistration
      tags:
      - Register
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: Registration email
              required:
              - email
      responses:
        '204':
          description: successful operation
  /api/v1/users/{id}/verify-email:
    post:
      summary: Verify a user
      operationId: verifyUser
      description: 'Following a user registration, the new user will receive an email asking to click a link

        containing a secret.

        This endpoint can also be used to verify a new email set in the user account.'
      tags:
      - Register
      parameters:
      - $ref: '#/components/parameters/id'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                verificationString:
                  type: string
                  format: url
                isPendingEmail:
                  type: boolean
              required:
              - verificationString
      responses:
        '204':
          description: successful operation
        '403':
          description: invalid verification string
        '404':
          description: user not found
  /api/v1/users/registrations/{registrationId}/verify-email:
    post:
      summary: Verify a registration email
      operationId: verifyRegistrationEmail
      description: 'Following a user registration request, the user will receive an email asking to click a link

        containing a secret.'
      tags:
      - Register
      parameters:
      - $ref: '#/components/parameters/registrationId'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                verificationString:
                  type: string
                  format: url
              required:
              - verificationString
      responses:
        '204':
          description: successful operation
        '403':
          description: invalid verification string
        '404':
          description: registration not found
  /api/v1/users/register:
    post:
      summary: Register a user
      operationId: registerUser
      description: Signup has to be enabled and signup approval is not required
      tags:
      - Register
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  state:
                    type: object
                    properties:
                      id:
                        $ref: '#/components/schemas/UserRegistrationState'
                      label:
                        type: string
        '400':
          description: request error
        '403':
          description: user registration is not enabled, user limit is reached, registration is not allowed for the ip, requires approval or blocked by a plugin
        '409':
          description: a user with this username, channel name or email already exists
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterUser'
        required: true
  /api/v1/users/registrations/request:
    post:
      summary: Request registration
      description: Signup has to be enabled and require approval on the instance
      operationId: requestRegistration
      tags:
      - Register
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  state:
                    type: object
                    properties:
                      id:
                        $ref: '#/components/schemas/UserRegistrationState'
                      label:
                        type: string
        '400':
          description: request error or signup approval is not enabled on the instance
        '403':
          description: user registration is not enabled, user limit is reached, registration is not allowed for the ip or blocked by a plugin
        '409':
          description: a user or registration with this username, channel name or email already exists
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserRegistrationRequest'
  /api/v1/users/registrations/{registrationId}/accept:
    post:
      security:
      - OAuth2:
        - admin
        - moderator
      summary: Accept registration
      operationId: acceptRegistration
      tags:
      - Register
      parameters:
      - $ref: '#/components/parameters/registrationId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserRegistrationAcceptOrReject'
      responses:
        '204':
          description: successful operation
  /api/v1/users/registrations/{registrationId}/reject:
    post:
      security:
      - OAuth2:
        - admin
        - moderator
      summary: Reject registration
      operationId: rejectRegistration
      tags:
      - Register
      parameters:
      - $ref: '#/components/parameters/registrationId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserRegistrationAcceptOrReject'
      responses:
        '204':
          description: successful operation
  /api/v1/users/registrations/{registrationId}:
    delete:
      security:
      - OAuth2:
        - admin
        - moderator
      summary: Delete registration
      description: Delete the registration entry. It will not remove the user associated with this registration (if any)
      operationId: deleteRegistration
      tags:
      - Register
      parameters:
      - $ref: '#/components/parameters/registrationId'
      responses:
        '204':
          description: successful operation
  /api/v1/users/registrations:
    get:
      security:
      - OAuth2:
        - admin
        - moderator
      summary: List registrations
      operationId: listRegistrations
      tags:
      - Register
      parameters:
      - $ref: '#/components/parameters/start'
      - $ref: '#/components/parameters/count'
      - name: search
        in: query
        required: false
        schema:
          type: string
      - name: sort
        in: query
        required: false
        schema:
          type: string
          enum:
          - -createdAt
          - createdAt
          - state
          - -state
      - name: stateOneOf
        in: query
        required: false
        schema:
          type: array
          items:
            $ref: '#/components/schemas/UserRegistrationState'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  total:
                    type: integer
                    example: 1
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/UserRegistration'
components:
  schemas:
    usernameChannel:
      type: string
      description: immutable name of the channel, used to interact with its actor
      example: framasoft_videos
      pattern: /^[a-zA-Z0-9\\-_.:]+$/
      minLength: 1
      maxLength: 50
    UserRegistrationState:
      type: integer
      enum:
      - 1
      - 2
      - 3
      description: The registration state (Pending = `1`, Rejected = `2`, Accepted = `3`)
    username:
      type: string
      description: immutable name of the user, used to find or mention its actor
      example: chocobozzz
      pattern: /^[a-z0-9._]+$/
      minLength: 1
      maxLength: 50
    UserRegistrationRequest:
      allOf:
      - $ref: '#/components/schemas/RegisterUser'
      - type: object
        properties:
          registrationReason:
            type: string
            description: reason for the user to register on the instance
        required:
        - registrationReason
    id:
      type: integer
      minimum: 1
      example: 42
    UserRegistration:
      properties:
        id:
          $ref: '#/components/schemas/id'
        state:
          type: object
          properties:
            id:
              $ref: '#/components/schemas/UserRegistrationState'
            label:
              type: string
        registrationReason:
          type: string
        moderationResponse:
          type:
          - string
          - 'null'
        username:
          type: string
        email:
          type: string
          format: email
        emailVerified:
          type: boolean
        accountDisplayName:
          type: string
        channelHandle:
          type: string
        channelDisplayName:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        user:
          type:
          - object
          - 'null'
          description: If the registration has been accepted, this is a partial user object created by the registration
          properties:
            id:
              $ref: '#/components/schemas/id'
    UserRegistrationAcceptOrReject:
      type: object
      properties:
        moderationResponse:
          type: string
          description: Moderation response to send to the user
        preventEmailDelivery:
          type: boolean
          description: Set it to true if you don't want PeerTube to send an email to the user
      required:
      - moderationResponse
    password:
      type: string
      format: password
      minLength: 6
      maxLength: 50
    RegisterUser:
      properties:
        username:
          description: immutable name of the user, used to find or mention its actor
          allOf:
          - $ref: '#/components/schemas/username'
        password:
          $ref: '#/components/schemas/password'
        email:
          type: string
          format: email
          description: email of the user, used for login or service communications
        displayName:
          type: string
          description: editable name of the user, displayed in its representations
          minLength: 1
          maxLength: 120
        channel:
          type: object
          description: channel base information used to create the first channel of the user
          properties:
            name:
              $ref: '#/components/schemas/usernameChannel'
            displayName:
              type: string
      required:
      - username
      - password
      - email
  parameters:
    start:
      name: start
      in: query
      required: false
      description: Offset used to paginate results
      schema:
        type: integer
        minimum: 0
    registrationId:
      name: registrationId
      in: path
      required: true
      description: Registration ID
      schema:
        $ref: '#/components/schemas/id'
    id:
      name: id
      in: path
      required: true
      description: Entity id
      schema:
        $ref: '#/components/schemas/id'
    count:
      name: count
      in: query
      required: false
      description: Number of items to return
      schema:
        type: integer
        default: 15
        maximum: 100
        minimum: 1
  securitySchemes:
    OAuth2:
      description: 'Authenticating via OAuth requires the following steps:

        - Have an activated account

        - [Generate] an access token for that account at `/api/v1/users/token`.

        - Make requests with the *Authorization: Bearer <token\>* header

        - Profit, depending on the role assigned to the account


        Note that the __access token is valid for 1 day__ and is given

        along with a __refresh token valid for 2 weeks__.


        [Generate]: https://docs.joinpeertube.org/api/rest-getting-started

        '
      type: oauth2
      flows:
        password:
          tokenUrl: /api/v1/users/token
          scopes:
            admin: Admin scope
            moderator: Moderator scope
            user: User scope
externalDocs:
  url: https://docs.joinpeertube.org/api-rest-reference.html
x-tagGroups:
- name: Static endpoints
  tags:
  - Static Video Files
- name: Download
  tags:
  - Video Download
- name: Feeds
  tags:
  - Video Feeds
- name: Auth
  tags:
  - Register
  - Session
- name: Accounts
  tags:
  - Accounts
  - Users
  - User Exports
  - User Imports
  - My User
  - My Subscriptions
  - My Notifications
  - My History
- name: Videos
  tags:
  - Video
  - Video Upload
  - Video Imports
  - Video Captions
  - Video Chapters
  - Video Channels
  - Video Comments
  - Video Rates
  - Video Playlists
  - Video Stats
  - Ownership Change
  - Video Mirroring
  - Video Files
  - Video Transcoding
  - Live Videos
  - Channels Sync
  - Video Passwords
  - Video Embed Privacy
- name: Search
  tags:
  - Search
- name: Moderation
  tags:
  - Abuses
  - Video Blocks
  - Account Blocklist
  - Server Blocklist
  - Automatic Tags
  - Watched Words
- name: Instance
  tags:
  - Config
  - Client Config
  - Homepage
  - Instance Follows
  - Instance Redundancy
  - Plugins
  - Stats
  - Logs
  - Job
- name: Remote Jobs
  tags:
  - Runner Registration Token
  - Runner Jobs
  - Runners