SuperAPI AI Directory

contract-cli-api-call

Coding & development

View repository

Updated 10-15 21:37

About this skill

contract-cli API Call

CRITICAL — before starting, MUST first read ../contract-cli-shared/SKILL.md。

Applicable commands

  • contract-cli api call <METHOD> <PATH>

Quick decision

  • Covered by structured commands: prefer the corresponding skill; do not fall back to api call
  • User provided an exact open platform path or the structured command is not implemented: use api call
  • User wants to call /open-apis/contract/v1/mcp/...: must use --as user

Key rules

  • PATH must be a relative path and start with /open-apis/ opening
  • Request body file input uses --input-file
  • --input-file and --data are mutually exclusive
  • Can be used repeatedly --header "Key: Value"
  • When matching /open-apis/contract/v1/mcp/ :
    • --as bot will be rejected outright
    • When not passing --as , resolve by default as user identity
  • Recommended reading order:

Implementation source

Operational advice

  • When structured commands exist, prefer structured commands
  • For raw debugging requests, prefer --input-file
  • When matching contract/v1/mcp , default to thinking in terms of user when looking at the problem

Do not do this

  • Do not pass an absolute URL
  • Do not treat --file as request body input
  • Do not disguise a real file upload requirement as an ordinary JSON body call