Ask the owner to let a website use DCAST
ask_site_accessAsk the account owner (one Allow click on DCAST's approval page) to let a website you built call DCAST from its own server. First, in the website's project folder, run: curl -fsSL https://api.dcast.pro/api/v1/agent/site-connect.mjs -o .dcast-site-connect.mjs && node .dcast-site-connect.mjs --name "" --url "". Pass the site code it prints as user_code. The key goes straight into the site's server environment; you never get it. A library, player, embed or upload button needs no key.
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": {
"user_code": "<user_code>",
"site_name": "<site_name>",
"areas": "<areas>"
},
"name": "ask_site_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| areas | Yes | What the site server needs: {"videos":"read"} to list, {"videos":"write"} to upload | |
| site_url | No | Website address shown to the owner | |
| site_name | Yes | Website name shown to the owner | |
| user_code | Yes | Site code the connector printed, e.g. BCDF-GHJK |