# SpatialGen API Documentation

> Part of the [SpatialGen API documentation](/index.md). [HTML version of this page](/).

Get started building your spatial experience with the SpatialGen API.

## API context

-   API requests use `https://spatialgen.com` with the `/api` path prefix, included once.
-   DRM base URL: `https://drm.spatialgen.com`.
-   Authenticate requests to SpatialGen API endpoints with the `X-SPATIALGEN-APPKEY` HTTP header.
-   Use a key from the workspace that owns the requested resources. Follow the roles and scopes specified for each endpoint below.
-   Keep `admin` and `upload` keys on a trusted backend. `readonly` keys may be used in client apps for permitted read operations.
-   Presigned upload URLs have their own authorization. Do not send your SpatialGen API key to those URLs.

See the [API key guide](/guides/get-started.md) for roles, key creation, expiration, revocation, and rotation.

* * *

Welcome to the SpatialGen API Documentation

-   [Get Started](/guides/get-started/)
-   [Visit SpatialGen](https://spatialgen.com/dashboard)

## SpatialGen API

[Retrieve Videos](/api/00_retrieve_videos)

Get videos in your workspace and every ready stream for each one.

[List Published Videos](/api/01_published_videos)

Get a list of your published videos for use in apps and integrations.

[Generate A Download Link](/api/05_secure_download)

Retrieve a secure download link to your uploaded file on the SpatialGen CDN.

[Direct Upload API](/api/direct-upload/)

Upload one full video asset set directly into SpatialGen storage using S3 compatable URLs.

[Transfer a Remote Video](/api/06_remote_upload)

Simply transfer a remote video to your SpatialGen workspace via an API.

[Delete A Video](/api/07_delete_video)

Delete a video from your library

## Security

[Apple FairPlay DRM](/security/fairplay-drm)

Implementing Apple FairPlay DRM with SpatialGen
