This API call is used to generate a read-only key for a specified user on this channel.
Where CHANNEL_ID is the ID of the target channel and the parameters are as defined below.
POST
Name | Type | Required | Description |
account_key or token_id | String | Required | Specify the account_key from the user account or token_id obtained after login. |
An HTTP code of 200 is responded for each successful data requests. The message body contains a JSON object containing the new read-only key for the specified channel.
Error: See the separate list of error codes for more details.
POST https://api.ubibot.com/channels/CHANNEL_ID/api_keys?action=generate_read_key&account_key=xxxxxx-xxxxxx-xxxxxx-xxxxx