API

Pairing

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/relay/pairings create Success
POST /api/v1/relay/pairings/claim create Success
GET /api/v1/relay/pairings/{id} load Success
GET /api/v1/relay/pairings load Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

pairing, err := client.Pairing(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(pairing)
created, err := client.Pairing(nil).Create(map[string]any{}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local pairing, err = client:Pairing():load({ id = "example_id" })
local created, err = client:Pairing():create({  })

PHP

Construct client as shown in the PHP setup, then call the operations:

$pairing = $client->Pairing()->load(["id" => "example_id"]);
$created = $client->Pairing()->create([]);

Python

Construct client as shown in the Python setup, then call the operations:

pairing = client.Pairing().load({"id": "example_id"})
created = client.Pairing().create({  })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

pairing = client.Pairing.load({ "id" => "example_id" })
created = client.Pairing.create({  })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const pairing = await client.Pairing().load({ id: "example_id" })
const created = await client.Pairing().create({  })

Fields

Field Type Required Description
id string No Id

create

POST /api/v1/relay/pairings

Operation ID: post_api_v1_relay_pairings.

Authentication: bearer token (bearerAuth).

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/relay/pairings/claim

Operation ID: claim_api_v1_pairings.

Authentication: bearer token (bearerAuth).

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/relay/pairings/{id}

Operation ID: api_v1_pairing.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/relay/pairings

Operation ID: api_v1_pairings.

Authentication: bearer token (bearerAuth).

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway