---
title: "Upload a LinkedIn voice note"
method: POST
path: "/advanced/linkedin/audio"
tags: ["Uploads"]
---

# Upload a LinkedIn voice note

`POST /advanced/linkedin/audio`

## Request

- Base URL: `https://api.emelia.io`
- URL: `https://api.emelia.io/advanced/linkedin/audio`
- Auth: API key in header `Authorization`

Converts an audio file (webm expected, 10 MB maximum, 5 minutes maximum) to m4a and returns a PUBLIC URL plus its duration IN MILLISECONDS, to use as an attachment with `mediaType: "AUDIO"` in a MESSAGE step.

## Response `200`

Success.

- object
  - `success` unknown
  - `audio` object
    - `duration` integer: Milliseconds.
    - `url` string, uri
    - `name` string

## Other responses

- `400`: Invalid request.
- `401`: Missing, malformed, unknown or disabled API key. The key must be exactly 48 characters, otherwise it is treated as a session token and rejected the same way.
- `500`: Unexpected error. IMPORTANT: this is also what you receive today when the per minute quota of your account is exceeded (the quota error is not mapped to 429 for API keys). No `Retry-After` header is sent. Wait until the next minute window before retrying.

---

[API](https://skmtc.dev/emelia/apis/emelia-api.md) · [All operations](https://skmtc.dev/emelia/apis/emelia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/emelia/apis/emelia-api/revisions/8c0cb435f2c4?raw)
