Skip to content

Make REST Based Calls With An API Key

Fuuz Wiki Import edited this page Jun 7, 2026 · 2 revisions

Make REST-Based Calls With An API Key

This article provides the resources to support the task of making REST-based calls with an API Key.

Use The API Key

The following are examples of using the API key.

Note: The caller passes the API key in the Authorization header like a bearer token.

Example HTTP Request

POST /application HTTP/1.1
Content-Type: application/json
Authorization: Bearer YourApiKeyHere
Host: api.YourSubDomain.fuuz.app
Content-Length: 111

{"query":"query {\n\tcurrentUser {\n\t\tuser {\n\t\t\temail\n\t\t}\n\t\ttenant {\n\t\t\tname\n\t\t}\n\t}\n}\n"}

Example PowerShell Request With Invoke-WebRequest

$headers=@{}
$headers.Add("Content-Type", "application/json")
$headers.Add("Authorization", "Bearer YourApiKeyHere")
$response = Invoke-WebRequest -Uri 'https://api.YourSubDomain.fuuz.app/application' -Method POST -Headers $headers -ContentType 'application/json' -Body '{"query":"query {\n\tcurrentUser {\n\t\tuser {\n\t\t\temail\n\t\t}\n\t\ttenant {\n\t\t\tname\n\t\t}\n\t}\n}\n"}'
Write $response

Example PowerShell Request With Invoke-RestMethod

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Bearer YourApiKeyHere")
$headers.Add("Content-Type", "application/json")

$body = @"
{`"query`":`"query {`\n`\tcurrentUser {`\n`\t`\tuser {`\n`\t`\t`\temail`\n`\t`\t}`\n`\t`\ttenant {`\n`\t`\t`\tname`\n`\t`\t}`\n`\t}`\n}`\n`"}
"@

$response = Invoke-RestMethod 'https://api.YourSubDomain.fuuz.app/application' -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json

Example cURL Request (Windows)

Note: When using a Windows command terminal, it may be necessary to escape the double quotes and avoid single quotes, as is done in this example, which includes Windows-style command continuation with carets.

curl.exe https://api.YourSubDomain.fuuz.app/application ^
 -H "Authorization: Bearer YourApiKeyHere" ^
 -H "Content-Type: application/json" -d "{\"query\":\"query{  currentUser { user { email } }}\"}" -v

Example Response

{
  "data": {
    "currentUser": {
      "user": {
        "email": "no-reply@domain.com"
      },
      "tenant": {
        "name": "Tenant Name"
      }
    }
  }
}

See Also


Source: support.fuuz.com

🏠 Home

Getting Started (14)
Training Guides (52)

Applications

Access & Users

Data Models & Schema

Screens

Weather Lookup Series — guided 3-part build

Data Flows & Integrations

Data, Reporting & Monitoring

Enterprise & Organizations

Platform Concepts & Architecture (10)
Screens & Application Design (17)
Data Models & Schema (8)
Data Flows & Scripting (51)

Designing Flows

Data Flow Nodes

JSONata Reference

Scripting

Integrations & Connectors (30)

General & iPaaS

Plex

EDI

IIoT & Edge Gateway (18)

Physical Device Connectors

Edge Data Connectors

Reporting, Documents & Dashboards (8)
Administration & Access Control (27)
Data Management (8)
Accelerators, Templates & Packages (8)
Design Standards (1)
How-To Guides (8)
FAQ & Troubleshooting (1)
Release Notes (117)

2026

2025

2024

2023

2022

2021

2020

Policies & Company (6)

Clone this wiki locally