vidinfra
  1. Auth
vidinfra
  • Documentation
    • Guides
      • Welcome
      • Getting Started
        • What is Vidinfra?
        • Quick Start Guide
        • Publish First Video
        • FAQs
      • Upload & Import Videos
        • Upload from Device
        • Import from Vimeo
        • Import from YouTube
        • Import from Zoom
      • DRM
        • Widevine DRM
        • FairPlay DRM
      • Accounts
        • Accounts
      • Organization Settings
        • User Management
        • Billing
        • Settings
  • API Reference
    • Projects
      • Get projects list
      • Get project
      • Create New Project
      • Destory Project
      • Update project
      • upload logo
      • Get Project Settings
      • Upsert Project Settings
    • importer.vidinfra.com
      • welcome
      • Debug
      • test
    • Auth
      • User Registration
        POST
      • User Login
        POST
      • Verify-email
        GET
      • Forgot Password
        POST
      • Forgot Password Verify OTP
        POST
      • Forgot Password Set
        POST
      • Resend OTP
        POST
      • Logout
        POST
      • Set Password
        POST
      • Check Account exists
        POST
      • Update Password
        POST
      • Google Oauth Redirect
        GET
      • Google Oauth Callback
        GET
      • api-access-check
        GET
      • New Auth token using Refresh token
        POST
      • Github Oauth Redirect
        GET
      • Google Oauth Callback Copy
        GET
      • Get User Sessions
        GET
      • Delete User Sessions
        DELETE
    • User
      • Profiles
      • Profile Updates
      • Profile Avatar update
    • Organization
      • List organizations
      • Create an organization
      • Get an organization
      • Update an organization
      • Switch an organization
    • Organization's invitations
      • Sent invitation list
      • Send invitation
      • Show Token
      • Accept Invitation
      • Reject Invitation
    • Audits
      • Audits
    • Members
      • Members
      • test permission
    • API Keys
      • Get All API keys
      • Get API Key
      • Create API Keys
      • Destory API Keys
      • api key middleware (test)
    • Folders
      • Get All Folders
      • Create Folder
      • Get Folder by ID
      • Update Folder
      • Move Folder
      • Bulk Move Folders (empty)
      • Delete Folder
      • Get Folder Tree
    • Videos
      • Get All video of a project
      • Get a Video
      • Get Video using Custom field
      • create video
      • Upload thumbnail
      • Update video
      • Destroy video
      • Search Video
      • batch video Assign to collecition
      • Mark Thumbnail As Default
      • Get Video Timelines
    • Video Metas
      • Create or Update Video Meta Data
      • Get All Meta Data of a Video
    • Video Captions
      • create video caption
      • Delete a video Caption
      • Get video caption
    • Video Chapter
      • create video chapters
    • Uploads
    • Tags
      • Get all tags upder a project
      • Create Tag
      • Delete tag
    • Players
      • Get all Players
      • Create Player
      • Get Specific player
      • update player
      • Delete Player
      • Player Mark as default
    • Webhook Endpoints
      • Get webhook
      • create web hook
      • GET Webhook by ID
      • Update webhook
      • Delete web hook
    • Advertisements
      • get all ads
      • create ads
      • get single advertisement
      • Update ads
      • Delete ads
    • Webhook Event Logs
      • Get webhook event logs
      • Resend Webhook event by Id
      • Resend All Webhook Event
    • Analytics Direct Api
      • geo-distribution
      • Project Views
      • avg video watch
      • Total watch Time
      • Project Avg Watch per Unique user
      • Total Player Error
      • project popularity-analysis
      • Project Collection Insights
      • Collection Views
      • Collection avg Watch time
      • Collection Avg Watch per unique user
      • Collection Geo Distribution
      • Get all Users
      • User media views
      • User Avg video watch
      • user Player log
      • user sessions
      • Get all Video
      • video Player error
      • Video View
      • video Geo Distribution
      • video Avg watch
      • copy
    • Streams
      • Create livestream
      • Get all stream
      • Get a livestream
      • update status of livestream
      • delete a stream
      • get livestream historys
    • Stream Metas
    • Usages
      • Bandwidth Usage
      • Storage Usage
      • Get Over Usage
    • Encoding profile
      • Get all profiles
      • Create profile
      • Get A profile
      • Update a encoding profile
      • Delete a encoding profile
      • Make a profile default
    • Project Matrics
      • Get Matrics
      • project Usages
    • Access Control
      • Put Access Control
      • Get access Control
    • Analytics
      • Project Get geo-distribution
      • project views
      • Project avg video watch
      • Project Total Watch
      • Project Avg Watch per Unique user
      • Project All Player Errors
      • Project Popularity Analysis
      • Project Collections insights
      • Collection Geo Distribution
      • Collection avg watch time
      • Collection avg watch per unique User
      • Collection Player error
      • Video Geo Distribution
      • Video views
      • Video Avg Watch
      • Video Player Log
      • User
      • User Avg Video Watch
      • User Total Watch
      • User player error log
    • Plan
      • public plans
      • current plan
      • Account Plans
      • Get plan by ID
      • Admin Get Plans
      • Admin Create plan
      • Admin Get Plan by ID
      • Admin Update Plan by ID
      • Admin Delete plan By ID
      • Admin Get Plan Metrices
      • Admin Get Plan Metrices By Type
      • Admin Create Plan Matrices By Type
      • Admin Update Plan Metrices By ID
    • Upload Tokens
      • Obtain credentials before upload
    • subscribe
      • stripe redirect subscription
        • create checkout session
        • over usage payment
      • current subscription
      • discribe a plan by planCode
      • subscribe
      • cancel subscription
      • over usage payment
      • Stripe over usage autopay payment (test)
    • Transaction
      • Get All Transaction
    • Invoice
      • Get All Invoices
      • Get Invoice by ID
    • vimeo video importer
      • vimeo job list
      • Vimeo videos by migration id
      • Vimeo Set video importer
      • Vimeo sync import
      • Vimeo import videos
      • Get pull videos
      • pull video from url
    • test
      • Welcome to vidinfra Copy
      • metrics
    • transcoding service
      • get all jobs
      • get a job
      • create jobs
      • Update a job
      • Delete a job
      • create job v2
    • transcoding service v2
      • create jobs
      • get all jobs
      • get a job
      • Update a job
      • Delete a job
    • Welcome to vidinfra
      GET
    • health check
      GET
    • Regions List
      GET
    • key
      POST
    • Untitled Endpoint
      GET
  1. Auth

User Registration

Developing
POST
/auth/register

Register new User for Vidinfra#

📣 This endpoint receives a POST request with payload and create a new user either personal or business account

For personal#

{
    "first_name": "Sk Shahriar Ahmed",
    "last_name": "Raka",
    "email": "skshahra@gmail.com",
    "password": "@RakaJui@gmail.com7@",
    "newsletter": true
}
🔰 Each parameter in details of this POST Request,
FirstName: A required string field for the user's first name with a maximum length of 255 characters.
LastName: A required string field for the user's last name with a maximum length of 255 characters.
Email: A required string field for the user's email address with a length between 5 and 100 characters and a valid email format.
Password: A string field for the user's password with a length between 8 and 100 characters, containing at least one lowercase letter, one uppercase letter, one digit, and one special character.
newsletter: A required boolean field indicating whether the user accepts the terms and conditions.
📢 Info message : Here the POST request enpoint is constructed like /v1/auth/register

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
first_name
string 
required
A required string field for the user's first name with a maximum length of 255 characters.
last_name
string 
required
A required string field for the user's last name with a maximum length of 255 characters.
email
string 
required
A required string field for the user's email address with a length between 5 and 100 characters and a valid email format
password
string 
required
A string field for the user's password with a length between 8 and 100 characters, containing at least one lowercase letter, one uppercase letter, one digit, and one special character.
newsletter
boolean 
required
A required boolean field indicating whether the user accepts the terms and conditions.
Example
{
    "first_name": "edward",
    "last_name": "newgate",
    "email": "skshahra@gmail.com",
    "password": "@skshahra@gmail.com@7R",
    "receieve_updates": true
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8080/v1/auth/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "first_name": "edward",
    "last_name": "newgate",
    "email": "skshahra@gmail.com",
    "password": "@skshahra@gmail.com@7R",
    "receieve_updates": true
}'

Responses

🟢201Created
application/json
Body
object {0}
Example
{"message":"Registered Successfully","access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiZjA4ZTY5M2MtMDkwOS00YjE2LWE1ZGEtZDkxMjQ1NzQxYzdhIiwiZW1haWwiOiJza3NoYWhyYUBnbWFpbC5jb20iLCJ1c2VybmFtZSI6ImVkd2FyZCBuZXdnYXRlIiwic2Vzc2lvbl9pZCI6ImZiZGE2YzUyLTc3NmUtNDNlZS04NTJlLTQ5ZGY2Njg1Zjk3YSIsImlzcyI6ImNvbnNvbGUudmlkaW5mcmEuY29tIiwiZXhwIjoxNzI2Njg4NzAxLCJpYXQiOjE3MjY2NDU1MDEsImp0aSI6ImRhNmQwNDA3LTI0ZjUtNDNhNC04MmU5LWU3ZDdmYjgyMWQ0YyJ9.noWO-TTtFpOS6qmOjJAt_yQ39O9aFwIBjej0XpjZpl10wjYyNuOcRd24GwSEvJy3OTZbklMNRTGZ3Hj0gQmn8crekWS0U8DiQgnNDD56opv_4INPF-I4LDwjmOqDwblOP2qK_fNOcqidG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NDdg4n-2WSjKk8YrzXX-Buz--hx-llm2pVgYGg2WxmEMWr1r29jiP4EWEcPud_2wPCSKoLj2lKtzZxjWOVlWX90uDNQcrk_dz0kSj6LR01omKiQtDOBgJjHVbKMTlwPq37aTXBn6ZzQ6cLh4HlkfUcJJTe9QSvyUyV-p4oYSgO0tTfpneAANoUXjWh89dtENu1eidvqezNG-1pZJX-2rfvCh_KfAOisfATOWLURJgzoMLrldgBUC5KrFNXbI9XFgj6KSZ6Bb1eV1urn3awvSEJeOFXCCdiUlRM_Uk8t-qUV9JX4hqS0KZoAX6X60FVJbPjYyud7ZEi1qx_zKLW3bE8I_viLKcAmYB58FE1jTwe5LoZlK-FuTnYRO_QHfuxFs76m_rbRbEww6WnvesPdleq8fNeDEXIk6eGaSbfd0Hv5o0VUxBS8zbeDbaiHSI5850YlFa97184rccQKBhAMOFwsm7CLhnLbJS_lm-lIYLpdTr-BbOS5RDqNk89SQfXzMgc0rRWJY7Q6B6Uy3QS0G-PB6rlyU2DNJv4FKIK313fb4sHUTr7HYdYxz0","result":{"first_name":"edward","last_name":"newgate","email":"skshahra@gmail.com","phone":"","user_name":"edward newgate","avatar_path":"","oauth_type":"","timezone":"","email_verified_at":"","id":"f08e693c-0909-4b16-a5da-d91245741c7a","newsletter":false},"success":true}
🟢201Created
🟠400Bad Request 400
Previous
test
Next
User Login
Built with