Get config /skill/config.json
Fetches the region endpoints, token policy type, tool list, and default parameters available to your account. Call it once at startup and cache the gid.
Request
Request body
Response
Example of a successful response (V2 schema):
Top-level fields
Tool entry fields
Typical use
- Call it once at startup and cache
gid,regions[region], andinvoke. - Before submitting, read
invoke[material_id].taskand the default parameters, and deep-merge them with your input. - Fetch it again periodically (for example every 24 hours) or when
need_update=true. - If
noticescontains entries withlevelofwarningor higher, surface them in your UI or logs.
cURL example
First define the api function from the HTTP API quick start. Fetching config does not consume quota.
Check that meta.code is 0 and that the response includes gid and the config for the image watermark removal tool SKM0006. region_name holds the first region in regions. Set it to another key if your account uses a different region.