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

# createUploadSession

> Create a new chunked upload session and return the canonical execution grant

**Required scopes:** `write:assets`, `host:write:network_assets` (any one)



**mutation** `createUploadSession(input: CreateUploadSessionInput!): CreateUploadSessionPayload`

## Arguments

**`input`**: `CreateUploadSessionInput!` (required)

Parameters for CreateUploadSession

## Returns

`CreateUploadSessionPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`session`**: `UploadSession`

## Examples

```graphql Mutation
mutation CreateUploadSession($input: CreateUploadSessionInput!) {
  createUploadSession(input: $input) {
    clientMutationId
    errors
    session {
      assetId
      assetStatus
      assetUrl
      estimateModelVersion
      estimateSource
      estimatedProcessingSeconds
    }
  }
}
```

```json Variables
{
  "input": {
    "assetKind": "AUDIO",
    "assetStyle": "BODY_MEDIA",
    "fileName": "string",
    "fileSizeBytes": "value",
    "spaceId": "id"
  }
}
```

```json Response
{
  "data": {
    "createUploadSession": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "session": {
        "assetId": "id",
        "assetStatus": "string",
        "assetUrl": "string",
        "estimateModelVersion": "string",
        "estimateSource": "string",
        "estimatedProcessingSeconds": 1
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.