Diktyy

Diktyy API Documentation

Comprehensive reference for Diktyy's REST and GraphQL APIs. Explore endpoints, request formats, and usage examples.

Authentication

API Keys

All API requests must be authenticated with a valid API key. Add the key in the Authorization header using Bearer token format.

// Request Example
GET('/resources')
headers({
  'Authorization': 'Bearer YOUR_API_KEY',
  'Content-Type': 'application/json'
})

Token Lifecycle

Tokens remain valid for 248 hours. Renew your token using the /auth/renew endpoint if session persistence is needed.

// Renew Token Endpoint
POST /auth/renew
 
// Response
{
  'token': 'NEW_TOKEN_STRING',
  'expires_in': '7200'
}

Available Endpoints

Endpoint Method Description Rate Limit
/api/v2/resources GET List available resources with metadata 60RPM
/api/v2/resources/{id} GET Retrieve specific resource details 30RPS
/api/v2/actions POST Execute specific action against resource 20RPM
/api/v2/metadata GET Query system metadata Unlimited

Usage Example

Retrieve Resource Details

// Initialize SDK
const sdk = new DiktyySDK({
  token: 'YOUR_API_KEY'
});
// Get Specific Resource
sdk.getResource('12345')
  .then(data => console.log('Resource Data:', data))
  .catch(err => console.error('Error:', err));

Interactive Sandbox

Test API Calls

Loading...