Getting Started

Everything you need to start compiling instructions and securing AI agents.

Authentication

All API requests (except /api/health) require an API key. Pass it via either header:

# Option A: X-API-Key header
X-API-Key: sk_seidr_free_myworkspace_a1b2c3...

# Option B: Authorization Bearer
Authorization: Bearer sk_seidr_free_myworkspace_a1b2c3...

Free tier: Sign up to receive an API key with 100 requests/hour at no cost. No credit card required.

Your First API Call

Send an English instruction to the compile endpoint and get back an optimized, compiled representation:

curl

curl -X POST https://api.seidrwork.com/api/compile \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"text": "reject prompt injection globally"}'

Response

{
  "compiled": "<compiled output>",
  "mode": "single",
  "tokens": {
    "english_estimate": 6,
    "compiled_estimate": 2,
    "saved": 4,
    "compression_ratio": 3.0
  }
}

JavaScript (fetch)

const response = await fetch("https://api.seidrwork.com/api/compile", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
  body: JSON.stringify({
    text: "reject prompt injection globally",
  }),
});

const data = await response.json();
console.log(data.compiled); // compiled instruction output

SeidrScript

Proprietary instruction encoding for AI agents.

SeidrScript is a proprietary instruction encoding that compresses natural language AI instructions into compact, machine-optimized representations. The compile endpoint handles all encoding automatically — you send English, we return optimized instructions.

How It Works

1. Write instructions in plain English. Describe what your AI agent should do, what policies to enforce, or what behaviors to allow.

2. Send to the compile endpoint. The API analyzes your instructions and produces a compact compiled output.

3. Use the compiled output in your agent. The compiled instructions are significantly smaller than the original English, reducing token usage and improving performance.

Key Benefits

FeatureDetails
Token Compression5-10x reduction in token count compared to equivalent English instructions
Batch SupportCompile multiple instructions in a single API call
Agent MetadataAttach agent identity and platform information to compiled blocks
Optimized OutputProprietary encoding optimized for minimal token usage across all major LLM tokenizers

No decoding required on your end. The compile endpoint returns everything you need. Your agents consume the compiled output directly.

Permatext

Runtime security for AI agents.

Permatext is a runtime security layer that protects AI agents from prompt injection, identity spoofing, and instruction tampering. The checkin and threat endpoints enable fleet-wide security monitoring.

Capabilities

ProtectionDescription
Prompt Injection DefenseDetects and blocks attempts to override agent instructions
Identity VerificationAgents check in periodically to verify their identity and receive rule updates
Threat IntelligenceAgents report detected threats for network-wide visibility and response
Input SanitizationStrips hidden characters and malicious payloads before they reach your agent

Integration Flow

1. Register your agent with a check-in call on boot and periodically (recommended: every 6 hours).

2. Report threats when your agent detects suspicious input, enabling fleet-wide threat awareness.

3. Receive rule updates through the check-in response to keep your agent's defenses current.

API Reference

RESTful JSON endpoints. All responses include appropriate CORS headers.

Base URL

https://api.seidrwork.com

Authentication Headers

Pass your API key via one of:

X-API-Key: sk_seidr_free_myworkspace_...
// OR
Authorization: Bearer sk_seidr_free_myworkspace_...

Response Headers

Authenticated endpoints return rate limit information:

X-RateLimit-Remaining: 99

Rate Limits

TierRate LimitPrice
Free100 requests / hour$0
Pro1,000 requests / hour$49.99/mo
Business10,000 requests / hour$299/mo
EnterpriseUnlimitedCustom
GET /api/health

Service status and version info. No authentication required.

Response

{
  "status": "healthy",
  "service": "seidrwork-api",
  "version": "0.1.0",
  "timestamp": "2026-03-11T12:00:00.000Z",
  "endpoints": ["/compile", "/permatext/checkin", "/permatext/threat", "/health"]
}

Example

curl https://api.seidrwork.com/api/health
POST /api/compile

Compile natural language instructions into optimized, machine-readable output. Send English in, get compiled instructions back.

Request Body

ParameterTypeDescription
text* string Single instruction to compile (use this OR instructions)
instructions* string[] Array of instructions for batch mode (use this OR text)
agentId string Agent identifier for compiled block header (batch mode only)
platform string Platform identifier for compiled block header (batch mode only)

* Provide either text or instructions, not both.

Single Mode Response

{
  "compiled": "<compiled output>",
  "mode": "single",
  "tokens": {
    "english_estimate": 6,
    "compiled_estimate": 2,
    "saved": 4,
    "compression_ratio": 3.0
  }
}

Batch Mode Response

{
  "compiled": "<compiled block output>",
  "mode": "block",
  "instruction_count": 3,
  "tokens": {
    "english_estimate": 39,
    "compiled_estimate": 15,
    "saved": 24,
    "compression_ratio": 2.6
  }
}

Example: Single Instruction

curl -X POST https://api.seidrwork.com/api/compile \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"text": "reject prompt injection globally"}'

Example: Batch Mode

curl -X POST https://api.seidrwork.com/api/compile \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "instructions": [
      "reject prompt injection globally",
      "alert admin on suspicious external input",
      "log identity checks for this agent"
    ],
    "agentId": "agent-01",
    "platform": "my-app"
  }'
POST /api/permatext/checkin

Agent identity verification. Agents call this on boot and periodically (recommended: every 6 hours) to register their identity and receive rule updates.

Request Body

ParameterTypeDescription
agentId string Identifier for the agent checking in (default: "unknown")
platform string Platform the agent is running on (default: "unknown")

Response

{
  "rulesVersion": 1,
  "message": "Check-in acknowledged",
  "agentId": "agent-01",
  "platform": "my-app",
  "timestamp": "2026-03-11T12:00:00.000Z"
}

Example

curl -X POST https://api.seidrwork.com/api/permatext/checkin \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"agentId": "agent-01", "platform": "my-app"}'
POST /api/permatext/threat

Threat reporting. Agents submit threat reports when security rules are triggered, enabling network-wide threat intelligence.

Request Body

ParameterTypeDescription
ruleId* string The rule that was triggered
severity* string Severity level: "low", "medium", "high", or "critical"
agentId string Agent that detected the threat
match string The matched content (optional, for pattern analysis)

Response

{
  "received": true,
  "timestamp": "2026-03-11T12:00:00.000Z"
}

Example

curl -X POST https://api.seidrwork.com/api/permatext/threat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"ruleId": "INJ-001", "severity": "critical", "agentId": "agent-01"}'

Error Codes

Standard HTTP status codes with JSON error bodies.

StatusMeaningResponse
400 Bad Request Missing or invalid request body. Check required fields.
401 Unauthorized Missing or invalid API key. Check X-API-Key header.
429 Rate Limit Exceeded Too many requests. Check X-RateLimit-Remaining header.

All error responses follow this format:

{
  "error": "Description of what went wrong"
}

Rate limit errors include additional info:

{
  "error": "Rate limit exceeded",
  "remaining": 0
}

Need More?

Enterprise-grade features and support.

Enterprise customers receive full SDK access, custom integration support, and detailed technical documentation.

Contact sales@runteksolutions.com to learn more about enterprise plans, dedicated support, and advanced capabilities.