Skip to content

Commit 07c2ab6

Browse files
committed
Cleaned Up Pod Provisioning
1 parent 896aa69 commit 07c2ab6

File tree

1 file changed

+50
-13
lines changed

1 file changed

+50
-13
lines changed

source/includes/_pods.md

Lines changed: 50 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# PODS
22

3-
## Register a Pod UUID
3+
## Register a UUID
44

5-
Registers a new Pod in Recursion.Space by providing a UUID and any optional fields.
5+
Registers a UUID with Recursion.Space as a valid Pod identifier.
6+
This step authorizes a Pod UUID under the user's account/API token, so that the device can register itself in the next step.
67

78
> `POST` /v1/pods
89
910
```shell
1011
curl -X POST "https://api.recursion.space/v1/pods" \
1112
-H "Content-Type: application/json" \
1213
-H "Authorization: Token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
13-
-d "uuid=xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx"
14+
-d '{"uuid": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx"}'
1415
```
1516

1617
### Parameters
@@ -21,18 +22,54 @@ curl -X POST "https://api.recursion.space/v1/pods" \
2122

2223
> Example Successful Response (HTTP 201 Created)
2324
25+
```json
26+
{
27+
"uuid": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx"
28+
}
29+
```
30+
31+
### Returns
32+
33+
| Field | Type | Description |
34+
| ------ | ------ | ---------------------------------- |
35+
| `uuid` | string | The unique identifier for the Pod. |
36+
37+
## Provision a Pod
38+
39+
Provision a Pod with Recursion.Space, this will provide the Pod with a token to use for future requests.
40+
41+
> `POST` /v1/pods/{uuid}/provision
42+
2443
```shell
25-
HTTP/1.1 201 Created
44+
curl -X POST "https://api.recursion.space/v1/pods/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/provision" \
45+
-H "Content-Type: application/json" \
46+
-d '{"serial": "xxxxxxxxxxxx"}'
47+
```
48+
49+
### Parameters
2650

51+
| Field | Type | Required | Description |
52+
| -------- | ------ | -------- | ----------------------------- |
53+
| `serial` | string | true | The serial number of the Pod. |
54+
55+
> Example Successful Response (HTTP 201 Created)
56+
57+
```json
2758
{
28-
"id": 1,
29-
"uuid": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx",
30-
"nickname": "",
31-
"serial": "",
32-
"version": "",
33-
"status": "0",
34-
"connection_last_made": "2025-02-09T05:59:08.947827Z",
35-
"snapshot": null,
36-
"facility": null
59+
"uuid": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx",
60+
"serial": "xxxxxxxx",
61+
"token": "pod_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
3762
}
3863
```
64+
65+
### Returns
66+
67+
| Field | Type | Description |
68+
| -------- | ------ | ------------------------------------------- |
69+
| `uuid` | string | The unique identifier for the Pod. |
70+
| `serial` | string | The serial number of the Pod. |
71+
| `token` | string | The Pod's unique token for future requests. |
72+
73+
<aside class="warning">
74+
The Pod token is unique to each Pod and must be kept secure. If the Pod token is lost or compromised, it cannot be reset. In such cases, you will need to re-provision the Pod by deleting the UUID and re-provisioning the Pod.
75+
</aside>

0 commit comments

Comments
 (0)