Lingara Lingara Docs Guides API Libraries Apps Build Web app
Language: English

Get an API version

API version 2026-10-affable-towhee

get https://api.getlingara.com/v1/versions/{id}

Returns one API version with its full history, its summary (in English) and its spec. The document at spec.url is this version's only when requested with the Lingara-Version header set to its id. spec.sha256 is the hash of its frozen document, and is null while the version is still in development. An unknown id answers 404. No token is needed. Responses may be cached for an hour.

Scopes No authentication required

Parameters

Lingara-Versionheaderstringoptional
The API version to answer this request under. Without it, an access token gets the version its client is pinned to, and a request with no token gets the current version. The version still in development is reached only by naming it here. An unknown version answers 400 with code api_version_unknown. GET /v1/versions lists the versions.
idpathstringrequired

Responses

200 The API version

idstringrequired
stateVersionStaterequired
ltsbooleanrequired
minted_atstringrequired
sunset_atstring | nullrequired
summarystring | nullrequired
historyarray of VersionHistoryEntryrequired
stateVersionStaterequired
atstringrequired
specVersionSpecrequired
urlstringrequired
sha256string | nullrequired
asyncapiVersionSpecrequired
urlstringrequired
sha256string | nullrequired

Errors

410application/json
The API version this request is answered under has been discontinued. Send a supported version in Lingara-Version, or re-pin the client.
4XXapplication/json
The request was refused. code says why, and error says it in words.
503application/json · text/plain
The service is temporarily unavailable; retry after the number of seconds in Retry-After. During maintenance the body is plain text rather than the error envelope.
5XXapplication/json
The request was refused. code says why, and error says it in words.
codestringrequired

Why the request was refused, as a stable code to branch on: for example insufficient_scope (403), rate_limited (429) and, for a metered client, spend_cap_reached (402) and metered_billing_inactive (402).

errorstringrequired

Example

Code sample language

curl

curl "https://api.getlingara.com/v1/versions/$ID"

TypeScript

const version = await client.getApiVersion({ id: "2026-09-knowing-tenpounder" });
console.log(version.id, version.state, version.summary);

Rust

let version = client.get_api_version("2026-09-knowing-tenpounder").await?;
println!("{} {:?} {}", version.id, version.state, version.summary.as_deref().unwrap_or(""));

Go

version, err := client.GetAPIVersion(ctx, "2026-09-knowing-tenpounder")
if err != nil {
	return err
}
fmt.Println(version.Value.ID, version.Value.State)

Java

import com.getlingara.client.model.VersionDetail;

VersionDetail version = client.getApiVersion("2026-09-knowing-tenpounder").body();
System.out.println(version.getId() + " " + version.getState());

Kotlin

val version = client.getApiVersion("2026-09-knowing-tenpounder").body
println("${version.id} ${version.state}")

Ruby

version = client.get_api_version(version_id).value
puts "#{version.id}: #{version.state}#{", sunset #{version.sunset_at}" if version.sunset_at}"

PHP

// Needs no token: a client built without credentials can call it.
$version = $client->getApiVersion($versionId)->value;
echo $version->getId(), ' is ', $version->getState()->value, "\n";

Prefer a library? See the Libraries section.