Vi har noen tekniske problemer med plattformen.🔨 Dette vil snart være fikset.

Transcriptions

Notater
Ekspertnivå
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
List

API endpoint:

GET
https://ai.planr.no/api/v1/transcriptions

Request example:

curl --location --request GET 'https://ai.planr.no/api/v1/transcriptions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Type
Beskrivelse
search
optional string
Søket.
search_by
optional string
Søk etter. Mulige verdier er: name for Navn, result for Resultat. Vanlig: name.
favorite
optional boolean
Filtrer etter favoritt.
sort_by
optional string
Sort by. Mulige verdier er: id for Date created, name for Navn. Vanlig: id.
sort
optional string
Sorter. Mulige verdier er: desc for Descending, asc for Ascending. Vanlig: desc.
per_page
optional integer
Resultater per side. Mulige verdier er: 10, 25, 50, 100. Vanlig: 10.
Show

API endpoint:

GET
https://ai.planr.no/api/v1/transcriptions/{id}

Request example:

curl --location --request GET 'https://ai.planr.no/api/v1/transcriptions/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://ai.planr.no/api/v1/transcriptions

Request example:

curl --location --request POST 'https://ai.planr.no/api/v1/transcriptions' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--form 'name={name}' \
--form 'file=@{file}'
Parameter
Type
Beskrivelse
name
required string
The transcription name.
file
required file
The audio file.
description
optional string
The description of the audio file.
language
optional string
The language of the audio file. The value must be in ISO 3166-1 alpha-2 standard.
Update

API endpoint:

PUT PATCH
https://ai.planr.no/api/v1/transcriptions/{id}

Request example:

curl --location --request PUT 'https://ai.planr.no/api/v1/transcriptions/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Type
Beskrivelse
name
optional string
The transcription name.
result
optional string
The transcription result.
favorite
optional boolean
Whether the transcription is favorite or not.
Slett

API endpoint:

DELETE
https://ai.planr.no/api/v1/transcriptions/{id}

Request example:

curl --location --request DELETE 'https://ai.planr.no/api/v1/transcriptions/{id}' \
--header 'Authorization: Bearer {api_key}'