> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# fly sprites api

Call the Sprites API with curl, adding the API address and your token.

Paths starting with /v1/ are used as given. Other paths are resolved against
the target sprite when there is one, so /checkpoints becomes
/v1/sprites/\<sprite>/checkpoints, and against /v1 otherwise.

Everything after the path is passed to curl.

## Usage

```
fly sprites api [flags] <path> [curl options]
```

## Examples

```
  fly sprites api /v1/sprites
  fly sprites api -s my-sprite /checkpoints
  fly sprites api /v1/sprites -X POST -d '{"name":"my-sprite"}'
```

## Options

```
  -h, --help            help for api
  -o, --org string      The target Fly.io organization
  -s, --sprite string   The target sprite. Defaults to the one set with 'fly sprites use'
```

## Global Options

```
  -t, --access-token string   Fly.io API token to use, overriding FLY_ACCESS_TOKEN, FLY_API_TOKEN and the saved login
      --debug                 Print additional logs and traces
      --verbose               Verbose output
```

## See Also

* [fly sprites](https://docs.fly.io/flyctl/cmd/fly_sprites)	 - Manage Sprites: persistent Linux environments for development and agents
