add_redirect_uri
Add a login callback URL to a Scalekit environment's allowed redirect list so OAuth login responses can return to your app.
Instructions
Add one login callback URL to an environment. Use add_post_logout_redirect_uri for a URL used after logout. Use list_redirect_uris to read the current list. Requires the caller OAuth token. Adding a URL that is already on the list leaves the list unchanged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"environmentId": "<environmentId>",
"uri": "<uri>"
},
"name": "add_redirect_uri"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | Login callback URL to add to the allowed redirect list. | |
| environmentId | Yes | Scalekit environment id. Format: env_<id>. |