API Requests

API Requests

Overview

Fastevo uses the JSON format for its HTTP requests. This guide will provide an overview of how to structure your requests when interacting with Fastevo's APIs.

Fastevo's Request Format

When making HTTP requests to Fastevo, the Content-Type header should be set to application/json and an Authorization header should be included. This informs Fastevo that the request body contains JSON data and provides your API key for authorization.

Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

Structuring the JSON Data

The data you send in your HTTP request should be a JSON object. Here's an example of what this might look like when interacting with Fastevo:

{
  "key1": "value1",
  "key2": "value2",
  "key3": "value3"
}

Making the Request to Fastevo

Once you've structured your JSON data, you can include it in the body of your HTTP request to Fastevo. Here's an example of a POST request with JSON data:

POST /api/resource HTTP/1.1
Host: api.fastevo.net
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
 
{
  "key1": "value1",
  "key2": "value2",
  "key3": "value3"
}

In this example, we're making a POST request to api.fastevo.net/api/resource. The JSON data is included in the body of the request, and the Authorization header contains your API key.