> This page is for Developers.

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

# List application tokens

GET https://iot.telia.lt/api/v2/application_token

Returns the application tokens of the requesting organisation.

Only tokens in status `ACTIVE` are returned unless the `q` filter asks otherwise.
The token itself is never returned; it is available only from the response of the create endpoint.


Reference: https://docs.iot.telia.lt/developers/api/application-tokens/application-token-get

## Authentication

- `Authorization` header (bearer token, required) — An `auth_token` should be provided to authenticate a session. To obtain an `auth_token`, see the [`/api/v1/authenticate` **POST** request](/developers/api/authentication/authenticate).

## Request

### Query parameters

- `q` (string, optional) — Filter the tokens. The only key is `status`, whose values are the ids that `GET /api/v2/application_token/status` lists: `q=status:1` for the active tokens, `q=status:3` for the deleted ones, `q=status:1||3` for both. Percent-encode the pipes - `q=status:1%7C%7C3` - as an unencoded `|` is not a legal URI character and is rejected before the request arrives. Defaults to active tokens only.

## Response

### 200

Success

- `list of ApplicationTokenV2`

## Errors

### 400 Bad Request Error

The filter is malformed or names an unknown status. See HTTP response body for details.

- `status_code` (integer, optional)
- `message` (string, optional)

### 403 Forbidden Error

Your role doesn't include the permission this endpoint requires. Most endpoints return `error_code`, `error_token`, and `message`. Some return only `status_code` and `message`.

- `error_code` (integer, optional)
- `error_token` (string, optional)
- `status_code` (integer, optional)
- `message` (string, optional)

## Types

### ApplicationTokenV2

- `id` (integer, required) — Unique ID of this application token.
- `name` (string, required)
- `status` (ApplicationTokenV2Status, required)
- `roles` (list of ApplicationTokenV2RolesItems, required) — The role granted to the token.
- `created_date` (string, required)
- `ip_restrictions` (list of ApplicationTokenV2IpRestrictionsItems, optional) — IP addresses the token may connect from. Absent where it may connect from any.
- `expiry_date` (string, optional) — Absent for a token created without one through the v1 API.
- `last_used_date` (string, optional) — Absent until the token has been used.
- `last_used_ip` (string, optional) — IP address the token was last used from.
- `created_by` (ApplicationTokenV2Actor, optional) — A user that acted on the token. Absent where an application token acted instead.
- `last_modified_date` (string, optional) — Absent until the token has been modified.
- `last_modified_by` (ApplicationTokenV2Actor, optional) — A user that acted on the token. Absent where an application token acted instead.
- `deleted_date` (string, optional) — Set only once the token has been deleted.
- `deleted_by` (ApplicationTokenV2Actor, optional) — A user that acted on the token. Absent where an application token acted instead.

### ApplicationTokenV2Status

- `id` (integer, optional)
- `description` (string, optional)

### ApplicationTokenV2RolesItems

- `id` (integer, optional)
- `name` (string, optional)

### ApplicationTokenV2IpRestrictionsItems

- `id` (integer, optional)
- `ip_address` (string, optional) — An IP address in CIDR notation.

### ApplicationTokenV2Actor

A user that acted on the token. Absent where an application token acted instead.

- `id` (integer, required)
- `username` (string, required)
- `type` (ApplicationTokenV2ActorType, required)
- `name` (string, optional)

### ApplicationTokenV2ActorType

- `id` (integer, optional)
- `description` (string, optional)

## Examples

**Response**

```json
[
  {
    "id": 1234,
    "name": "CI pipeline token",
    "status": {
      "id": 1,
      "description": "ACTIVE"
    },
    "roles": [
      {
        "id": 3,
        "name": "Observer"
      }
    ],
    "created_date": "2026-08-21T10:00:00.000Z",
    "ip_restrictions": [
      {
        "id": 42,
        "ip_address": "10.10.1.0/24"
      }
    ],
    "expiry_date": "2027-08-21T10:00:00.000Z",
    "last_used_date": "2026-08-25T08:30:00.000Z",
    "last_used_ip": "192.168.0.1",
    "created_by": {
      "id": 10,
      "username": "john.doe@example.com",
      "type": {
        "id": 0,
        "description": "HUMAN"
      },
      "name": "John Doe"
    },
    "last_modified_date": "2026-08-24T09:15:00.000Z",
    "last_modified_by": {
      "id": 10,
      "username": "john.doe@example.com",
      "type": {
        "id": 0,
        "description": "HUMAN"
      },
      "name": "John Doe"
    }
  },
  {
    "id": 77,
    "name": "Reporting token",
    "status": {
      "id": 1,
      "description": "ACTIVE"
    },
    "roles": [
      {
        "id": 1,
        "name": "Administrator"
      }
    ],
    "created_date": "2024-02-28T14:24:45.000Z"
  }
]
```

**SDK Code**

```python Application tokens
import requests

url = "https://iot.telia.lt/api/v2/application_token"

querystring = {"q":"status:1||3"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Application tokens
const url = 'https://iot.telia.lt/api/v2/application_token?q=status%3A1%7C%7C3';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go Application tokens
package main

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

func main() {

	url := "https://iot.telia.lt/api/v2/application_token?q=status%3A1%7C%7C3"

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

	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 Application tokens
require 'uri'
require 'net/http'

url = URI("https://iot.telia.lt/api/v2/application_token?q=status%3A1%7C%7C3")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

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

HttpResponse<String> response = Unirest.get("https://iot.telia.lt/api/v2/application_token?q=status%3A1%7C%7C3")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://iot.telia.lt/api/v2/application_token?q=status%3A1%7C%7C3', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Application tokens
using RestSharp;

var client = new RestClient("https://iot.telia.lt/api/v2/application_token?q=status%3A1%7C%7C3");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Application tokens
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://iot.telia.lt/api/v2/application_token?q=status%3A1%7C%7C3")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```