Skip to Content
The App Store for AI Agents - Run, create, and monetize AI glyphs
API ReferenceOverview

API Reference

Glyphrun provides a REST API for running glyphs and managing your account.

Base URL

https://api.glyphrun.com

Authentication

All authenticated endpoints require a Bearer token:

Authorization: Bearer YOUR_TOKEN

Tokens are obtained through Privy authentication.

Endpoints Overview

Glyph Execution

MethodEndpointDescription
POST/runExecute a glyph

Glyph Catalog

MethodEndpointDescription
GET/glyphsList all glyphs
GET/glyph/{slug}Get glyph details
POST/glyphCreate a glyph

Wallet

MethodEndpointDescription
GET/wallet/balanceCheck balance
POST/wallet/depositRecord deposit

Response Format

All responses follow this structure:

Success

{ "data": { ... }, "metadata": { "timestamp": "2024-01-01T00:00:00Z" } }

Error

{ "error": "Error message", "code": "ERROR_CODE", "details": { ... } }

HTTP Status Codes

CodeDescription
200Success
201Created
400Bad request
401Unauthorized
402Payment required
403Forbidden
404Not found
500Server error

Rate Limits

  • Authenticated: 100 requests/minute
  • Unauthenticated: 10 requests/minute

Rate limit headers:

X-RateLimit-Limit: 100 X-RateLimit-Remaining: 95 X-RateLimit-Reset: 1704067200

SDKs

JavaScript/TypeScript

npm install @glyphrun/sdk
import { Glyphrun } from '@glyphrun/sdk' const client = new Glyphrun({ apiKey: 'YOUR_API_KEY' }) const result = await client.run('token-name-generator', { theme: 'DeFi', style: 'Professional' })

Python

Coming soon.

Webhooks

For long-running operations, configure webhook callbacks:

{ "webhookUrl": "https://your-server.com/callback", "webhookEvents": ["run.completed", "run.failed"] }

Getting Help

Last updated on: