Hello World
Let's make your first API call to Duro. This guide will walk you through a simple query to verify your setup.
Prerequisites
Before making API calls, ensure you have:
An API key (see Authentication)
Your organization slug (visible in your Duro URL:
durohub.com/org/@your-org/...)
Required Headers
All API requests require these headers:
Header
Description
x-api-key
Your API authentication token
x-organization
Your organization slug (e.g., @acme-corp)
Content-Type
Must be application/json
Your First Query
Here's a simple query to list all libraries in your organization:
query GetLibraries {
libraries {
id
name
slug
description
}
}Example Response
Complete cURL Example
Here's a complete example using cURL:
Next Steps
Now that you've verified your API access, learn about working with Components.
Last updated
Was this helpful?