rectangle-terminalVision API

Complete API documentation for integrating vision.meme into your applications. Build custom meme token launchpads and manage Solana Token-2022 tokens with on-chain metadata programmatically.


Base URL

https://api.vision.meme

All API requests should be made to this base URL. Use HTTPS for all requests.


API Architecture

The vision.meme API follows RESTful principles:

  • Resource-based URLs - Endpoints represent resources (tokens, distributions, etc.)

  • HTTP methods - Standard methods (GET, POST, PATCH, DELETE)

  • JSON format - All request and response bodies use JSON

  • Stateless - Each request contains all necessary information

  • Predictable structure - Consistent response formats


Request Format

Headers

All requests should include these headers:

http

For authenticated endpoints, also include:

http

Example Request

bash


Response Format

Success Responses

All successful responses return JSON with appropriate HTTP status codes.

200 OK - Successful GET, PATCH, or DELETE request:

json

201 Created - Successful POST request creating a resource:

json

Error Responses

All errors return JSON with appropriate HTTP status codes and error details.

Standard Error Format:

json

Validation Error Format:

json


HTTP Status Codes

Code
Name
Meaning

200

OK

Request successful

201

Created

Resource created successfully

400

Bad Request

Invalid request parameters or validation error

401

Unauthorized

Missing or invalid authentication token

403

Forbidden

Authenticated but not authorized for this resource

404

Not Found

Resource does not exist

429

Too Many Requests

Rate limit exceeded

500

Internal Server Error

Server error occurred


Data Types

Common Field Types

String

json

Number

json

Boolean

json

Array

json

Object

json

Null

json

Solana-Specific Types

Mint Address - 32-44 character base58 string

json

Wallet Address - 32-44 character base58 string

json

Transaction Signature - Base58 encoded string

json

Base64 Transaction - Base64 encoded transaction

json

Amount Representation

All token amounts are represented as strings in smallest units (lamports for SOL, base units for tokens):

json

Conversion Examples:

javascript


Pagination

List endpoints support pagination using query parameters:

Parameters:

  • page (number, default: 1) - Page number

  • limit (number, default: 20, max: 100) - Items per page

Request:

bash

Response:

json


Timestamps

All timestamps are in ISO 8601 format with UTC timezone:

json

Parsing in JavaScript:

javascript


Request IDs

Each API request receives a unique request ID for tracking and debugging:

Response Headers:

http

Include this ID when contacting support about specific requests.


Idempotency

Some endpoints support idempotency to safely retry requests:

Idempotent Methods:

  • GET - Always safe to retry

  • PUT - Same result on multiple calls

  • DELETE - Same result on multiple calls

Non-Idempotent Methods:

  • POST - May create duplicate resources if retried

Best Practice: For POST requests, store the response on first success to avoid duplicates when retrying.


API Versioning

The vision.meme API does not currently use URL versioning. Breaking changes will be communicated in advance through:

  • Email notifications

  • Documentation updates

  • Changelog entries

  • Deprecation warnings in responses

Current Version: 1.0

Backward Compatibility:

  • New fields added to responses (non-breaking)

  • New optional request parameters (non-breaking)

  • New endpoints (non-breaking)

Breaking Changes (future):

  • Removal of fields

  • Changed field types

  • Required new parameters

  • Changed response structure


Environments

Production

Base URL: https://api.vision.meme Blockchain: Solana Mainnet Use for: Live token creation and real transactions

Development

Recommendation: Use Solana Devnet for testing

Steps:

  1. Test wallet-based authentication

  2. Create test tokens on devnet

  3. Verify integration logic

  4. Move to production when ready

Note: The API always interacts with Solana Mainnet. Use devnet for blockchain testing outside the API.


Common Patterns

Creating a Token

Updating Distribution Settings

Adding Liquidity


Best Practices

Error Handling

Always wrap API calls in try-catch blocks:

javascript

Rate Limit Handling

Check rate limit headers and implement backoff:

javascript

Token Refresh

JWT tokens expire in 7 days. Check expiration and refresh:

javascript

Request Timeouts

Set appropriate timeouts for different operations:

javascript


Rate Limits

See Rate Limits for detailed information on limits by endpoint category.


Authentication

See Authentication for details on the wallet-based JWT authentication flow.


Error Handling

See Error Handling for comprehensive error codes and handling strategies.


Next Steps

  • Authentication Guide - Learn how to authenticate

  • Token Endpoints - Create and manage tokens

  • Code Examples - Working examples in multiple languages


Need Help?

  • 📚 Full API Reference

  • 💬 Discord Community

  • 📱 Telegram Support


© 2025 Vision.meme. All rights reserved.

Last updated