api_login
Authenticate with APIs by sending login credentials to specified endpoints, retrieving tokens, and configuring headers for secure access token usage in CyberMCP.
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": {
"login_url": "<login_url>",
"credentials": "<credentials>"
},
"name": "api_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credentials | Yes | Login credentials as key-value pairs | |
| header_name | No | Header name to use for the token | Authorization |
| login_url | Yes | API login endpoint URL | |
| method | No | HTTP method to use | post |
| token_path | No | Path to token in the response (e.g., 'data.accessToken') | token |
| token_prefix | No | Token prefix to use in Authorization header | Bearer |