Create OAuth token
create-oauth-tokenExchange password grant credentials via POST /oauth/token. client_id and client_secret come from POST /v1/login.
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": {
"client_id": "<client_id>",
"client_secret": "<client_secret>"
},
"name": "create-oauth-token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | OAuth scope string. Use empty string when unused. | |
| password | No | Account password. Defaults to the session password. | |
| username | No | Account email. Defaults to the session email. | |
| client_id | Yes | OAuth client id returned by login | |
| client_secret | Yes | OAuth client secret returned by login |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | JSON or plain text body returned by the Botsify HTTP API |