Update a Channel

Prev Next

The Verify API enables you to generate, send, and verify OTP codes for the SMS channel. You can utilize this API to generate OTP codes to send via SMS as defined in the payloads. Integrating it into your own websites or apps, you can trigger it on login pages, payment pages, and more.

After you create a channel for your brand, you can edit and update it later.

Endpoint and Headers

POST https://verify.useinsider.com/v1/channel/update

This API key is sensitive and should only be implemented on the backend. Using it on the frontend or mobile SDK may pose security risks.

Visit our Postman collection to test this request.

Headers

Header Sample Value Description
X-INS-AUTH-KEY 1a2b3c4d5e6f This key is required to authorize your request. Refer to API Authentication Tokens to generate your token.
Content-Type application/json This header specifies the media type of the resource.

Body Parameters

Parameter Description Data Type Required Rules
channel Channel that you will send the OTP code. String Yes oneof:sms
brandName Your brand name defines your OTP SMS content in pre-defined templates. String Yes min:3 max:30 characters

Sample Request

Every request made to the request endpoint requires a request body formatted in JSON and containing your parameters. 

Make sure to replace the sample values in the request header(s) and body where required before sending your request.

Below is a sample request to update an existing SMS verification channel with a new brand name.

curl --location 'verify.useinsider.com/v1/channel/update' \
--header 'Content-Type: application/json' \
--header 'x-ins-auth-key: 1a2b3c4d5e6f' \
--data '{
    "channel": "sms",
    "brandName": "YourBrand"
}'

Sample Responses

202 Accepted

{
    "status": "success"
}

400 Bad Request

{
    "errors": [
        {
            "message": "invalid request payload"
        }
    ]
}

400 Bad Request

{
    "errors": [
        {
            "message": "this field must be one of these:sms",
            "field": "channel"
        }
    ]
}

401 Unauthorized

{
    "errors": [
        {
            "message": "unauthorized"
        }
    ]
}

429 Too Many Requests

{
    "errors": [
        {
            "message": "rate limit exceeded"
        }
    ]
}

500 Internal Server Error

{
    "errors": [
        {
            "message": "channel already exists"
        }
    ]
}

500 Internal Server Error

{
    "errors": [
        {
            "message": "server error"
        }
    ]
}

Limitations

  • All functions must be executed with a simple HTTPS POST request.
  • The API Key should be provided as the authorization key in the request header. If the key is incorrect, the operation will not be executed, and an authorization error will be returned in the response.
  • The rate limit is 25 requests per minute.

The default limit shown here is a standard baseline. If your use case requires higher capacity, feel free to reach out to the Insider One team — we can adjust it to fit your needs.