Getting Started

Get up and running with TruCustom in just a few minutes.

1

Create an Account

Sign up for a free account to get started.

2

Generate an API Key

Create an API key in your dashboard to authenticate requests.

3

Make Your First Request

Test the API by listing your stores.

Step 1: Create an Account

If you haven't already, sign up for a free account. You'll get instant access to the dashboard and API.

Step 2: Generate an API Key

Navigate to Dashboard → API Keys and create a new key:

  1. Click "Create API Key"
  2. Give it a descriptive name (e.g., "Development Key")
  3. Select the scopes you need:
    • read - Read access to all resources
    • write - Create and update resources
    • delete - Delete resources
  4. Copy the generated key - you won't see it again!

Step 3: Make Your First Request

Test your API key by listing your stores:

cURL

curl -X GET "https://trucustom.net/api/v1/stores" \
  -H "Authorization: Bearer tc_your_api_key_here" \
  -H "Content-Type: application/json"

JavaScript (fetch)

const response = await fetch('https://trucustom.net/api/v1/stores', {
  headers: {
    'Authorization': 'Bearer tc_your_api_key_here',
    'Content-Type': 'application/json'
  }
});

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

Ruby

require 'net/http'
require 'json'

uri = URI('https://trucustom.net/api/v1/stores')
request = Net::HTTP::Get.new(uri)
request['Authorization'] = 'Bearer tc_your_api_key_here'
request['Content-Type'] = 'application/json'

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end

puts JSON.parse(response.body)

Python

import requests

response = requests.get(
    'https://trucustom.net/api/v1/stores',
    headers={
        'Authorization': 'Bearer tc_your_api_key_here',
        'Content-Type': 'application/json'
    }
)

print(response.json())

Next Steps