Everything an agent needs to discover, authenticate, and use ParseKit.
Agent discovery manifest. Returns available tools, auth method, pricing URL, and wallet endpoints.
{
"schema_version": "1.0",
"name": "ParseKit",
"tools": [{ "name": "extract_text", "endpoint": "/agent/extract_text", ... }],
"wallet": { "deposit_url": "/wallet/deposit", "balance_url": "/wallet/balance" }
}
Machine-readable pricing for all tools.
{
"currency": "USD",
"tools": {
"extract_text": {
"cost_per_call": 0.01,
"free_tier": { "calls_per_month": 100 }
}
}
}
Register your agent to get a Bearer token. Include it in the Authorization header for all authenticated endpoints.
Register a new agent. Returns an API key and creates a wallet with $1.00 in free credits.
| Parameter | Type | Description |
|---|---|---|
| agent_name required | string | Name of your agent (min 2 chars) |
curl -X POST https://parsekit.polsia.app/auth/register \
-H "Content-Type: application/json" \
-d '{"agent_name": "my-agent"}'
{
"api_key": "pk_a1b2c3d4e5f6...",
"agent_name": "my-agent",
"wallet": { "balance": 1.00, "currency": "USD" }
}
Extract text from a file URL. Supports text, HTML, JSON, CSV, images (OCR), and PDFs. Costs $0.01 per call. Failed extractions are auto-refunded.
| Parameter | Type | Description |
|---|---|---|
| file_url required | string | Public URL of the file to extract text from |
curl -X POST https://parsekit.polsia.app/agent/extract_text \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"file_url": "https://example.com/document.pdf"}'
{
"job_id": 42,
"text": "Extracted text content...",
"confidence_score": 0.88,
"cost": 0.01,
"processing_time_ms": 1234,
"file_url": "https://example.com/document.pdf"
}
{
"error": "insufficient_funds",
"wallet": { "balance": 0.005, "required": 0.01, "deposit_url": "/wallet/deposit" }
}
Check your current wallet balance and recent transactions.
curl https://parsekit.polsia.app/wallet/balance \ -H "Authorization: Bearer pk_your_api_key"
{
"wallet": { "balance": 0.99, "currency": "USD" },
"recent_transactions": [
{ "amount": 0.01, "type": "charge", "description": "extract_text: https://..." }
]
}
Add credits to your wallet. Minimum $1.00, maximum $1,000.00 per transaction.
| Parameter | Type | Description |
|---|---|---|
| amount required | number | Amount to deposit in USD (min 1.00) |
curl -X POST https://parsekit.polsia.app/wallet/deposit \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"amount": 10.00}'
{
"success": true,
"wallet": { "balance": 10.99, "currency": "USD" },
"transaction": { "amount": 10.00, "type": "deposit" }
}