1 Minute Free Time for Everyday -

  Create Your AI Video Right Now!
×
    
    
        
Authentication

Usage

Overview

Vidnoz Open API uses API keys for authentication. Get your API token from our API interfaces.

  • First, you need to login to our website.
  • Then, click the “APl Credentials” below avatar to set the key pair (clientId, clientSecret) used when accessing the API and save it.
  • Use the secret key pair just saved to send the api interface to obtain the access token.

Get access token

Get the token to access api.

POST https://devapi.vidnoz.com/v1/oauth/token

Body Attributes application/json

Parameter Type Required Description
client_id string true Used for request authorization
client_secret string true Used for request authorization

Response Attributes

Parameter Type Description
access_token string API access token for request authorization
expires_in int The token expires after a certain number of seconds

Response Code Description

Parameter Type Description
code 200 Success
code 400 Request parameter error
code 401 Authorization failed(e.g. The token is invalid or expired)
code 500 Server exception occurred

Example

Request

{
    "client_id": "Your client ID for request authorization",
    "client_secret": "Your client secret for request authorization",
}

Response

{
    "code": 200,
    "message": "ok",
    "data": {
        "access_token": "Your access token",
        "expires_in": 5909
    }
}

All API requests should include your API token in the HTTP header, Authorization looks like this:

Authorization: Bearer token

Remember, your API token is secret! Do not share it with others or expose it in any client-side code (browser, application). Production requests must be routed through your own backend server, and your API token can be securely loaded from environment variables or a key management service.