Duro API
ChangelogStatusApp
  • Welcome to Duro Dev Center
  • Getting Started
    • Introduction
    • Authentication
    • Hello World
  • Core Concepts
    • Components & Products
    • Documents
    • Change Orders
  • Advanced Topics
    • Searching and Filtering
    • Datarooms & RBAC
    • Webhooks
    • Error Handling
  • Library Configuration
    • Introduction to Duro's Config System
    • Category Registry
    • Revision Scheme
    • CPN Generation Scheme
    • CPN Schema Reference
  • Community
    • Developer Community
Powered by GitBook
On this page
  • Basic Query
  • Example Response
  • Complete Example
  • Next Steps
Export as PDF
  1. Getting Started

Hello World

Let's make your first API call to Duro. This guide will walk you through a simple query to verify your setup.

Basic Query

Here's a simple query to get your user information:

query {
  viewer {
    id
    email
    name
  }
}

Example Response

{
  "data": {
    "viewer": {
      "id": "user_123",
      "email": "user@example.com",
      "name": "John Doe"
    }
  }
}

Complete Example

Here's a complete example using curl:

curl 'https://api.durohub.com/graphql' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"query":"query { viewer { id email name }}"}'

Next Steps

PreviousAuthenticationNextComponents & Products

Last updated 6 months ago

Learn about working with .

Components and Products