⚙️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.
johndoe@gmail.comClient created successfully
trueInternal server error
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.
johndoe@gmail.com123456OTP verified successfully, returns API key
trueyour-generated-api-keyOTP verification failed
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:
Use this API key for all subsequent API calls by including it in the header of your requests.
Last updated