OnePlus1 Digital Twin API v1.0.0

Quick Start Guide

1

Get Your API Key

Contact your administrator to obtain an API key. Store it securely - you'll need it for all authenticated requests.

2

Make Your First Request

Test the connection with a simple health check. Add your API key to the X-API-Key header.

3

Create a Digital Twin

Start training a digital twin model by creating a user and submitting training data.

Authentication

All API requests require authentication via an API key passed in the X-API-Key header.

curl -X GET "https://oneplus1api.com/health" \
  -H "X-API-Key: your_api_key_here"
import requests

headers = {
    "X-API-Key": "your_api_key_here"
}

response = requests.get(
    "https://oneplus1api.com/health",
    headers=headers
)

print(response.json())
const response = await fetch('https://oneplus1api.com/health', {
  method: 'GET',
  headers: {
    'X-API-Key': 'your_api_key_here'
  }
});

const data = await response.json();
console.log(data);

API Reference

Explore all available endpoints, request parameters, and response formats.