API for developers Support

Support API

Support API: ask TPcopier for help or custom work from your own code, follow each request's messages and files, and pay a quoted bill from your wallet.

Support and custom work

Ask TPcopier for help or for custom work, follow the conversation, and pay a quoted bill - the same requests as in the app's Help page. Each request's fields are below.

curl -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/desk            # your requests
curl -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/desk/T          # one of them, with its messages

Further reading: the OpenAPI Specification our API description follows.

Endpoints in this guide

Base address https://tpcopier.com. Send your key with every request - Authorization: Bearer tpc_... - up to 120 requests a minute. Open an endpoint for its fields, its answers and an example.

shopPlans, bills, orders and licences
GET/api/v1/desk/orders/{ref}Order Status

Parameters

ref *pathstring

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/desk/orders/{ref}"
deskCustom work requests
GET/api/v1/deskRequests

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/desk"
POST/api/v1/deskNew Request

Request body

{
  "kind": "custom",
  "area": "",
  "subject": "",
  "body": ""
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"kind": "custom", "area": "", "subject": "", "body": ""}' \
     "https://tpcopier.com/api/v1/desk"
POST/api/v1/desk/account/{aid}Account Help

One tap on the Bridge or the copier: this account does not connect.

Parameters

aid *pathinteger

Request body

{
  "said": ""
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"said": ""}' \
     "https://tpcopier.com/api/v1/desk/account/{aid}"
GET/api/v1/desk/{tid}Request

Parameters

tid *pathinteger

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/desk/{tid}"
POST/api/v1/desk/{tid}/messagesMessage

Parameters

tid *pathinteger

Request body

{
  "body": ""
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"body": ""}' \
     "https://tpcopier.com/api/v1/desk/{tid}/messages"
POST/api/v1/desk/{tid}/filesFiles

A message with attached files (pictures, documents, logs - any kind).

Parameters

tid *pathinteger

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/desk/{tid}/files"
GET/api/v1/desk/{tid}/files/{mid}/{i}File

Parameters

tid *pathinteger
mid *pathinteger
i *pathinteger

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -H "Authorization: Bearer $TPC_KEY" \
     "https://tpcopier.com/api/v1/desk/{tid}/files/{mid}/{i}"
POST/api/v1/desk/{tid}/actionAction

Parameters

tid *pathinteger

Request body

{
  "action": "",
  "note": ""
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"action": "", "note": ""}' \
     "https://tpcopier.com/api/v1/desk/{tid}/action"
POST/api/v1/desk/bills/{bid}/payPay Bill

Parameters

bid *pathinteger

Request body

{
  "accept_no_refund": false,
  "method": "binance"
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"accept_no_refund": false, "method": "binance"}' \
     "https://tpcopier.com/api/v1/desk/bills/{bid}/pay"
POST/api/v1/desk/bills/{bid}/transferReport Transfer

Parameters

bid *pathinteger

Request body

{
  "tx_ref": "",
  "network": "",
  "accept_no_refund": false
}

Responses

200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors

Example

curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
     -d '{"tx_ref": "", "network": "", "accept_no_refund": false}' \
     "https://tpcopier.com/api/v1/desk/bills/{bid}/transfer"