Introduction

You can interact with the GraphQL API through HTTP requests from any language.

The API lets you create new videos.

This page will help you get up and running with Fliz’s GraphQL API.

If your new to GraphQL you can learn more about it on https://graphql.org/learn/

Authentication

The Fliz API uses API keys for authentication. Visit your API Keys page to retrieve the API key you'll use in your requests.

Remember that your API key is a secret! Do not share it with others or expose it in any client-side code (browsers, apps). Production requests must be routed through your own backend server where your API key can be securely loaded from an environment variable or key management service.

All API requests should include your API key in an Authorization HTTP header as follows:

Authorization: Bearer FLIZ_API_KEY

Endpoint and queries

GraphQL queries are executed by sending POST HTTP requests to the endpoint:

<https://api.fliz.ai/v1/graphql>

Example:

# Get latest videos
curl -X POST <https://api.fliz.ai/v1/graphql> \\
  -H 'Content-Type: application/json' \\
  -H 'Authorization: Bearer {secret_key}' \\
  -d '{
  "query": "{
    fliz_video(limit: 3 order_by: {created_at: desc}) {
        id
        title
        output_video_url
    }
	}"
}'