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

# requestImageConversion

> Starts a conversion of one image and returns its id and a signed link to upload the original to. Nothing is stored until the upload. Expected failures come back in the payload's `errors` list, not as top-level GraphQL errors, each with a `code` naming the failure: `ValidationError` for an invalid `filename`.



**mutation** `requestImageConversion(input: RequestImageConversionInput!): RequestImageConversionPayload!`

## Arguments

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

## Returns

`RequestImageConversionPayload!`

**`errors`**: `[RequestImageConversionError!]`

---

**`imageConversion`**: `ImageConversion`

## Examples

```graphql Mutation
mutation RequestImageConversion($input: RequestImageConversionInput!) {
  requestImageConversion(input: $input) {
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
    imageConversion {
      id
      maxFileSize
      uploadExpiresAt
      uploadUrl
    }
  }
}
```

```json Variables
{
  "input": {
    "filename": "string"
  }
}
```

```json Response
{
  "data": {
    "requestImageConversion": {
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ],
      "imageConversion": {
        "id": "value",
        "maxFileSize": "value",
        "uploadExpiresAt": "value",
        "uploadUrl": "string"
      }
    }
  }
}
```


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