---
title: "Rest API RTI Get RTI"
description: "REST API RTI Get RTI"
keywords: "REST API RTI Get RTI"
url: "https://myrapidi.com/wiki/rest_api_rti_get_rti"
locale: "en"
published: "2018-02-28T17:35:09Z"
modified: "2023-04-06T11:12:18Z"
---

Below you see an example of how to get a list of RTI values. Examples both in JSON and JSONAPI are provided.

NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVICE ID]" below) to your own token and service id.

## JSON:

```
curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X GET
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/rtis
```

The out-put for this example would be:

```
[
  {
    "id": "3",
    "transfer": "A_NAVSQL_TEST_DATES",
    "source": "NAVSQL001",
    "destination": "NAVSQL002",
    "source_control":-151027
  },
  {
    "id": "4",
    "transfer": "A_NAVSQL_TEST_PERMISSIONS",
    "source": "NAVSQL001",
    "destination": "NAVSQL002",
    "source_control": 151030
  },
  {  
    "id": "5",
    "transfer": "A_NAVSQL_TEST_USERROLE",
    "source": "NAVSQL001",
    "destination": "NAVSQL002",
    "source_control": 151028
  },
  ...
]
```

## JSONAPI: ##

Get list of RTIs:

```
curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X GET
  https://api.myrapidi.com/api/v2/service/[SERVICE ID]/rtis
```

The out-put for this example would be:

```
{
  "data": [
    {
      "id": "3",
      "type":"rtis",
      "attributes":{
        "transfer": "A_NAVSQL_TEST_DATES",
        "source": "NAVSQL001",
        "destination": "NAVSQL002",
        "source_control":-151027 
      }
    },
    {
      "id": "4",
      "type": "rtis",
      "attributes": {
        "transfer": "A_NAVSQL_TEST_PERMISSIONS",
        "source": "NAVSQL001",
        "destination": "NAVSQL002",
        "source_control": 151030 
      }
    },
    {  
      "id": "5",
      "type": "rtis",
      "attributes": {
        "transfer": "A_NAVSQL_TEST_USERROLE",
        "source": "NAVSQL001",
        "destination": "NAVSQL002",
        "source_control": 151028 
      }
    },
    ...
  ]
}
```
