⚙️Utility Integration

Getting Started

Step 1: Register As Client

To initiate the login process and receive an OTP, send a POST request to the authentication endpoint. The OTP will be sent to the email address you provide.

This call triggers the server to send an OTP to the provided email address. Check your email for the OTP code.

Initiates the client login process and sends OTP to the provided email address.

post
Body
emailstringoptionalExample: johndoe@gmail.com
Responses
application/json
objectoptional
post
POST /login/client HTTP/1.1
Host: devutility.streamnft.tech
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "email": "johndoe@gmail.com"
}
{
  "success": true,
  "message": "text"
}

Step 2: Verify Client

Once you receive the OTP, verify it by sending another POST request to the same endpoint. This request should include both your email address and the OTP you received.

Verify OTP and retrieve API key

post
Body
emailstringoptionalExample: johndoe@gmail.com
otpstringoptionalExample: 123456
Responses
application/json
objectoptional
post
POST /login/verify HTTP/1.1
Host: devutility.streamnft.tech
Content-Type: application/json
Accept: */*
Content-Length: 42

{
  "email": "johndoe@gmail.com",
  "otp": 123456
}
{
  "success": true,
  "API_KEY": "your-generated-api-key"
}

Response:

If the OTP is verified successfully, the response will include your API key:

{
  "success": true,
  "API_KEY": "YOUR_API_KEY_HERE"
}

Use this API key for all subsequent API calls by including it in the header of your requests.

Last updated

Was this helpful?