API Reference
Complete reference for all ClawSoup API endpoints
Authentication
All API requests require authentication via Bearer token in the Authorization header.
Authorization: Bearer cs_live_your_api_key_hereBase URL
https://api.clawsoup.comAuthentication
/v1/auth/registerCreate an account and receive your API key
Parameters
emailstringYour email address (required)passwordstringPassword, min 8 characters (required)namestringDisplay name (optional)Example
curl -X POST https://api.clawsoup.com/v1/auth/register \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'/v1/healthCheck if the API is running (no auth required)
Example
curl -X GET https://api.clawsoup.com/v1/health \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Skills Marketplace
/v1/skillsBrowse and search available skills
Parameters
categorystringFilter by categorypricing_typestringFilter: subscription or usagesearchstringSearch by name or descriptionsortstringpopular, newest, price_asc, price_desc, ratinglimitnumberResults per page (default: 20, max: 100)offsetnumberPagination offset (default: 0)Example
curl -X GET https://api.clawsoup.com/v1/skills \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/skills/{slug}Get full details for a specific skill
Parameters
slugstringSkill URL identifierExample
curl -X GET https://api.clawsoup.com/v1/skills/web-scraper \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/skills/{slug}/purchasePurchase a subscription skill with credits
Parameters
slugstringSkill URL identifierExample
curl -X POST https://api.clawsoup.com/v1/skills/web-scraper/purchase \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'/v1/skills/{slug}/executeExecute an API-based skill
Parameters
slugstringSkill URL identifierbodyobjectSkill-specific parameters (see api_schema)Example
curl -X POST https://api.clawsoup.com/v1/skills/web-scraper/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'/v1/skills/{slug}/downloadDownload a purchased skill package
Parameters
slugstringSkill URL identifierExample
curl -X GET https://api.clawsoup.com/v1/skills/web-scraper/download \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Developer - Skill Management
/v1/developer/skillsList all your skills (draft, pending, approved, rejected)
Example
curl -X GET https://api.clawsoup.com/v1/developer/skills \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/developer/skillsCreate a new skill
Parameters
namestringSkill name (required)slugstringURL-safe identifier (required, unique)descriptionstringShort description (required)categorystringSkill category (required)pricing_typestringsubscription or usage (default: subscription)pricenumberSubscription price in USDsubscription_intervalstringday, week, month, or yearprice_per_callnumberCost per API call (usage pricing)free_callsnumberNumber of free trial callsexecution_typestringapi, download, or both (default: api)api_endpointstringYour API endpoint URLapi_schemaobjectJSON schema for API parameterssubmitbooleantrue to submit for review, false for draftExample
curl -X POST https://api.clawsoup.com/v1/developer/skills \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'/v1/developer/skills/{id}Get details of your skill by ID
Parameters
iduuidSkill IDExample
curl -X GET https://api.clawsoup.com/v1/developer/skills/abc-123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/developer/skills/{id}Update your skill (resubmits for review if content changes)
Parameters
iduuidSkill IDnamestringUpdated namedescriptionstringUpdated descriptionpricing_typestringsubscription or usagepricenumberUpdated pricesubscription_intervalstringday, week, month, or yearsubmitbooleantrue to resubmit for reviewExample
curl -X PATCH https://api.clawsoup.com/v1/developer/skills/abc-123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'Credits & Billing
/v1/balanceGet your current credit balance
Example
curl -X GET https://api.clawsoup.com/v1/balance \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/credits/topupList available credit packs
Example
curl -X GET https://api.clawsoup.com/v1/credits/topup \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/credits/topupPurchase credits via Stripe checkout
Parameters
pack_idstringCredit pack IDamountnumberCustom amount ($1 = 1 credit)Example
curl -X POST https://api.clawsoup.com/v1/credits/topup \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'/v1/purchasesList your purchased skills
Parameters
limitnumberResults per page (default: 50)offsetnumberPagination offsetExample
curl -X GET https://api.clawsoup.com/v1/purchases \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/usageGet API usage history
Parameters
limitnumberResults per page (default: 50)offsetnumberPagination offsetstart_datestringStart date (ISO 8601)end_datestringEnd date (ISO 8601)skillstringFilter by skill slugExample
curl -X GET https://api.clawsoup.com/v1/usage \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"API Keys
/v1/keysList your API keys (prefix only)
Example
curl -X GET https://api.clawsoup.com/v1/keys \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/keysCreate a new API key
Parameters
namestringKey name (optional)expires_in_daysnumberAuto-expire after N days (optional)Example
curl -X POST https://api.clawsoup.com/v1/keys \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'/v1/keys/{id}Update key name or status
Parameters
iduuidAPI key IDnamestringNew nameactivebooleanEnable or disable the keyExample
curl -X PATCH https://api.clawsoup.com/v1/keys/abc-123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'/v1/keys/{id}Revoke an API key
Parameters
iduuidAPI key IDExample
curl -X DELETE https://api.clawsoup.com/v1/keys/abc-123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Admin
/v1/admin/skillsList all skills with status filter (admin only)
Parameters
statusstringFilter: draft, pending, approved, rejectedlimitnumberResults per page (default: 50)offsetnumberPagination offsetExample
curl -X GET https://api.clawsoup.com/v1/admin/skills \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"/v1/admin/skillsApprove or reject a skill (admin only)
Parameters
skill_iduuidSkill ID to review (required)actionstringapprove or reject (required)reasonstringRejection reason (optional)Example
curl -X PATCH https://api.clawsoup.com/v1/admin/skills \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'Error Codes
200Success - Request completed successfully400Bad Request - Invalid parameters401Unauthorized - Invalid or missing API key402Payment Required - Insufficient credits404Not Found - Skill or resource not found429Too Many Requests - Rate limit exceeded500Internal Server Error - Something went wrong