> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.revero.no/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.revero.no/_mcp/server.

# Complete Recording Upload

POST https://api.revero.no/public/v1/recordings/{recording_id}/complete

Verify the uploaded object and accept transcription asynchronously.

Reference: https://docs.revero.no/api-reference/revero-public-api/public-api/complete-public-recording-upload

## Authentication

- `Authorization` header (bearer token, required) — Revero-owned OAuth 2.0 Client Credentials. Obtain tokens only from a backend; never place the client secret in browser code.

## Servers

- `https://api.revero.no` (Production, default)
- `https://api.staging.revero.no` (Staging)

## Request

### Path parameters

- `recording_id` (string, required)

### Headers

- `Idempotency-Key` (string, required)

## Response

### 202

The authoritative operation accepted for asynchronous processing.

- `id` (string, required) — Revero's identifier for this operation.
- `meeting_id` (string, required) — The meeting the command acted on.
- `command` (string, required) — Which command this receipt is for.
- `status` (enum, required) — One of five coarse states. `queued` and `processing` mean work is outstanding; the other three are terminal and will not change.
  - Allowed values: `queued`, `processing`, `completed`, `failed`, `cancelled`
- `phase` (enum, required) — Which stage the work has reached. Informational, for showing progress — do not branch on it; branch on `status`.
  - Allowed values: `upload`, `transcription`, `generation`, `delivery`
- `created_at` (datetime, required) — When the command was accepted.
- `updated_at` (datetime, required) — When this resource last changed.
- `failure_code` (enum, optional, nullable) — Why the operation failed, or null. A closed set of stable values — branch on this rather than on the HTTP status or the message.
  - Allowed values: `upload_unreadable`, `transcription_failed`, `transcription_empty`, `generation_failed`, `processing_not_entitled`, `output_profile_unavailable`, `organisation_key_unavailable`, `jurisdiction_unavailable`, `internal_error`
- `retryable` (boolean, optional, nullable) — Whether re-sending could succeed at all. Null until the operation fails. False means a retry would fail identically, but the reason differs by `failure_code`, and only some need an administrator, so branch on the code rather than on this alone.
- `completed_at` (datetime, optional, nullable) — When it reached a terminal state.

## Errors

### 401 Unauthorized Error

`invalid_token` — the bearer token is missing, expired, revoked, or belongs to a client whose organisation is suspended or no longer entitled to the Public API. Obtain a new token; if that also fails, an administrator must act.

- `code` (string, required) — Stable, machine-readable reason for the refusal
- `message` (string, required) — Human-readable explanation. Never parse this.

### 403 Forbidden Error

`insufficient_scope` — the token is valid but was not issued with the scope this route requires. Request the scope at token exchange.

- `code` (string, required) — Stable, machine-readable reason for the refusal
- `message` (string, required) — Human-readable explanation. Never parse this.

### 404 Not Found Error

`recording_not_found` — no recording with this id belongs to the calling integration client.

- `code` (string, required) — Stable, machine-readable reason for the refusal
- `message` (string, required) — Human-readable explanation. Never parse this.

### 409 Conflict Error

One of: `recording_already_completed` (this recording was completed under a different Idempotency-Key), `meeting_already_processing` (a DIFFERENT recording for this meeting is already being processed — one meeting carries one recording, so poll that operation or create a new meeting), `upload_expired` (the presigned grant lapsed — prepare a new recording), `upload_not_found` (no object at the expected location: the browser upload did not finish), `empty_upload` (the object is zero bytes), or `uploaded_content_type_mismatch` (the stored type differs from the one declared).

- `code` (string, required) — Stable, machine-readable reason for the refusal
- `message` (string, required) — Human-readable explanation. Never parse this.

### 413 Content Too Large Error

`upload_too_large` — the object exceeds the maximum upload size.

- `code` (string, required) — Stable, machine-readable reason for the refusal
- `message` (string, required) — Human-readable explanation. Never parse this.

### 422 Unprocessable Entity Error

Invalid request

- `code` (string, required) — Stable, machine-readable reason for the refusal
- `message` (string, required) — Human-readable explanation. Never parse this.

### 502 Bad Gateway Error

`dispatch_failed` — the command was accepted and stored, but processing could not be started. Retry with the SAME `Idempotency-Key`; the replay re-dispatches it rather than creating a second operation.

- `code` (string, required) — Stable, machine-readable reason for the refusal
- `message` (string, required) — Human-readable explanation. Never parse this.

### 503 Service Unavailable Error

`processing_unavailable` — see `POST /meetings`.

- `code` (string, required) — Stable, machine-readable reason for the refusal
- `message` (string, required) — Human-readable explanation. Never parse this.

## Examples

**Response**

```json
{
  "id": "string",
  "meeting_id": "string",
  "command": "string",
  "status": "queued",
  "phase": "upload",
  "created_at": "2024-01-15T09:30:00Z",
  "updated_at": "2024-01-15T09:30:00Z",
  "failure_code": "upload_unreadable",
  "retryable": true,
  "completed_at": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://api.revero.no/public/v1/recordings/recording_id/complete"

headers = {
    "Idempotency-Key": "Idempotency-Key",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.revero.no/public/v1/recordings/recording_id/complete';
const options = {
  method: 'POST',
  headers: {'Idempotency-Key': 'Idempotency-Key', Authorization: 'Bearer <token>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.revero.no/public/v1/recordings/recording_id/complete"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.revero.no/public/v1/recordings/recording_id/complete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = 'Idempotency-Key'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.revero.no/public/v1/recordings/recording_id/complete")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.revero.no/public/v1/recordings/recording_id/complete', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => 'Idempotency-Key',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.revero.no/public/v1/recordings/recording_id/complete");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "Idempotency-Key");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.revero.no/public/v1/recordings/recording_id/complete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```