You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/bringyour.yml
+127-9Lines changed: 127 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1231,6 +1231,61 @@ paths:
1231
1231
schema:
1232
1232
$ref: "#/components/schemas/HelloResult"
1233
1233
1234
+
/account/api-key:
1235
+
post:
1236
+
description: |
1237
+
Create an API key for the account.
1238
+
operationId: Account Create API Key
1239
+
security:
1240
+
- BearerAuth: []
1241
+
requestBody:
1242
+
required: true
1243
+
content:
1244
+
application/json:
1245
+
schema:
1246
+
$ref: "#/components/schemas/CreateApiKeyArgs"
1247
+
responses:
1248
+
"200":
1249
+
content:
1250
+
application/json:
1251
+
schema:
1252
+
$ref: "#/components/schemas/CreateApiKeyResult"
1253
+
1254
+
/account/api-key/remove:
1255
+
post:
1256
+
description: |
1257
+
Remove an API key for the account.
1258
+
operationId: Account Remove API Key
1259
+
security:
1260
+
- BearerAuth: []
1261
+
requestBody:
1262
+
required: true
1263
+
content:
1264
+
application/json:
1265
+
schema:
1266
+
$ref: "#/components/schemas/DeleteApiKeyArgs"
1267
+
responses:
1268
+
"200":
1269
+
content:
1270
+
application/json:
1271
+
schema:
1272
+
$ref: "#/components/schemas/DeleteApiKeyResult"
1273
+
1274
+
/account/api-keys:
1275
+
get:
1276
+
description: |
1277
+
Fetches a list of API keys associated with the account.
1278
+
The list does not include the API key secrets, only metadata.
1279
+
operationId: Account Get API Keys
1280
+
security:
1281
+
- BearerAuth: []
1282
+
responses:
1283
+
"200":
1284
+
content:
1285
+
application/json:
1286
+
schema:
1287
+
$ref: "#/components/schemas/GetApiKeysResult"
1288
+
1234
1289
/account/payout-wallet:
1235
1290
post:
1236
1291
description: |
@@ -2082,14 +2137,14 @@ components:
2082
2137
# the returned proxy urls are valid as long as the client is not removed
2083
2138
proxy_config_result:
2084
2139
description: |
2085
-
The following proxy URLs and auths may be used:
2086
-
| URL | Auth |
2087
-
|-----|------|
2088
-
| https://<auth_token>.<proxy_host>:<https_proxy_port> | no auth needed when the client connects with TLS |
2089
-
| https://<proxy_host>:<https_proxy_port> | use HTTP Proxy-Authorization Basic with `access_token` as the username (empty pass), or Bearer with `access_token` as the bearer token |
2090
-
| http://<proxy_host>:<http_proxy_port> | use HTTP Proxy-Authorization Basic with `access_token` as the username (empty pass), or Bearer with `access_token` as the bearer token |
2091
-
| tcp://<proxy_host>:<socks_proxy_port> | use `access_token` as the username (empty pass) |
2092
-
| wg://<proxy_host>:<wg_proxy_port> | use `wg_config.config` as the full WireGuard config file content, which contains all the necessary keys |
2140
+
The following proxy URLs and auths may be used:
2141
+
| URL | Auth |
2142
+
|-----|------|
2143
+
| https://<auth_token>.<proxy_host>:<https_proxy_port> | no auth needed when the client connects with TLS |
2144
+
| https://<proxy_host>:<https_proxy_port> | use HTTP Proxy-Authorization Basic with `access_token` as the username (empty pass), or Bearer with `access_token` as the bearer token |
2145
+
| http://<proxy_host>:<http_proxy_port> | use HTTP Proxy-Authorization Basic with `access_token` as the username (empty pass), or Bearer with `access_token` as the bearer token |
2146
+
| tcp://<proxy_host>:<socks_proxy_port> | use `access_token` as the username (empty pass) |
2147
+
| wg://<proxy_host>:<wg_proxy_port> | use `wg_config.config` as the full WireGuard config file content, which contains all the necessary keys |
2093
2148
allOf:
2094
2149
- type: object
2095
2150
properties:
@@ -2102,7 +2157,7 @@ components:
2102
2157
If the proxy is removed from memmory, the next call to the proxy will
2103
2158
create a new device set up to the `initial_device_state` (if present).
0 commit comments