Some endpoints are able to return more data than they normally do by expanding their response. When this is possible the endpoint will specify the expand
field and will document which fields can be expanded. The expand field takes an array of string field names that identify which fields you wish to expand.
To expand a single field, you may specify it as part of the query.
For example:
/example-endpoint?expand[]=bar
This will cause the bar
key and its value to be included in the response. If bar
itself has expandable fields, see path expands.
If the field you wish to expand is not a top level key within the response, you may specify it using dot notation.
For example:
/example-endpoint?expand[]=foo.bar
If foo
itself is not an expandable field, this will work like a normal field expand. The bar
key and its value will be included in the response nested under the foo
key.
If foo
is an expandable field, see nested expands.
To expand more than one field, you may add additional expands to the query.
For example:
/example-endpoint?expand[]=bar&expand[]=baz
If you are already expanding a field, foo
, and it has its own expandable field(s), bar
, you may additionally expand bar as follows.
/example-endpoint?expand[]=foo&expand[]=foo.bar
The foo
key and its value will be included in the response. Additionally, The bar
key and its value will be included in the response nested under the foo
key.
If you wish to expand the bar
key, but are not interested in the other keys on foo
, see granular expands.
If foo
is an expandable field whose keys you are not interested in except for its own expandable field bar
, you may do the following.
/example-endpoint?expand[]=foo.bar
The foo
key will exist, but its value will only have the bar
key, discluding all other sibling keys you did not explicitly ask for.
Some endpoints specify a search
parameter. The value of this parameter must be a string that
contains a valid query as defined by this search query language.
IMPORTANT NOTICE
Every list-type endpoint that accepts a search
parameter requires that the search parameter is supplied, and furthermore that an organization PRN clause is provided in the search like so: organization_prn:'value'
.
A query consists of at least one and at most five clauses joined by the and
keyword.
For example:
inserted_at>='2023-01-01T00:00:00Z' and description~'east blue'
A clause consists of a key, an operator, and a value.
For example:
inserted_at>='2023-01-01T00:00:00Z'
When performing a search, the set of valid keys is defined by the relevant endpoint's search
parameter's documentation.
Each key an endpoint specifies as searchable will be associated with a set of operators that are valid to use with it. Below are all possible operators and their associated operation:
Keyword | Operation |
---|---|
: |
equals (case-sensitive) |
- |
substring (case-insensitive) |
~ |
substring (case-sensitive) |
< |
less than |
<= |
less than or equal to |
> |
greater than |
>= |
greater than or equal to |
Each key will specify which type of value it acepts.
String
You must use single quotes when supplying a string. You can escape single quotes inside of
single quotes with a backslash (\
).
For example:
summary~'zoro\'s three sword style'
Boolean
Boolean values are supplied either true
or false
without single quotes.
For example:
archived:true
Date-Time
You must use single quotes when supplying a date-time and you must use the following
representation: '[YYYY]-[MM]-[DD]T[HH]:[MM]:[SS]Z'
. The timezone is always UTC.
For example:
inserted_at:'2023-01-01T00:00:00Z'
Numeric
Numeric values are supplied as-is without single quotes.
For example:
berries:100000000
Add an organization user
Authorizations:
path Parameters
organization_name required | string |
Request Body schema: application/jsonrequired
role required | any (role-name) Enum: "admin" "read" "read" "write" |
username required | string (user-username) |
Responses
Request samples
- Payload
{- "role": "admin",
- "username": "string"
}
Response samples
- 201
{- "data": {
- "email": "user@example.com",
- "role": "admin",
- "username": "string"
}
}
Update an organization user
Authorizations:
path Parameters
organization_name required | string (organization-name) |
user_username required | string (user-username) |
Request Body schema: application/jsonrequired
role required | any (role-name) Enum: "admin" "read" "read" "write" |
Responses
Request samples
- Payload
{- "role": "admin"
}
Response samples
- 200
{- "data": {
- "email": "user@example.com",
- "role": "admin",
- "username": "string"
}
}
List product users
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Responses
Response samples
- 200
{- "data": [
- {
- "email": "user@example.com",
- "role": "admin",
- "username": "string"
}
]
}
Add a product user
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Request Body schema: application/jsonrequired
role required | any (role-name) Enum: "admin" "read" "read" "write" |
username required | string (user-username) |
Responses
Request samples
- Payload
{- "role": "admin",
- "username": "string"
}
Response samples
- 200
{- "data": {
- "email": "user@example.com",
- "role": "admin",
- "username": "string"
}
}
Retrieve a product user
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
user_username required | string (user-username) |
Responses
Response samples
- 200
{- "data": {
- "email": "user@example.com",
- "role": "admin",
- "username": "string"
}
}
Update a product user
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
user_username required | string (user-username) |
Request Body schema: application/jsonrequired
role required | any (role-name) Enum: "admin" "read" "read" "write" |
Responses
Request samples
- Payload
{- "role": "admin"
}
Response samples
- 200
{- "data": {
- "email": "user@example.com",
- "role": "admin",
- "username": "string"
}
}
Authenticate a user
Authorizations:
Request Body schema: application/jsonrequired
string <email> (email) | |
password required | string (user-password) |
username required | string |
Responses
Request samples
- Payload
{- "email": "user@example.com",
- "password": "string",
- "username": "string"
}
Response samples
- 200
{- "data": {
- "email": "user@example.com",
- "username": "string"
}
}
Login a user
Authorizations:
Request Body schema: application/jsonrequired
string <email> (email) | |
note required | string |
password required | string (user-password) |
username required | string |
Responses
Request samples
- Payload
{- "email": "user@example.com",
- "note": "string",
- "password": "string",
- "username": "string"
}
Response samples
- 200
{- "data": {
- "email": "user@example.com",
- "token": "string",
- "username": "string"
}
}
Register a user
Authorizations:
Request Body schema: application/jsonrequired
email required | string <email> (email) |
password required | string (user-password) |
username required | string (user-username) |
Responses
Request samples
- Payload
{- "email": "user@example.com",
- "password": "string",
- "username": "string"
}
Response samples
- 200
- 403
{- "data": {
- "email": "user@example.com",
- "username": "string"
}
}
Create an artifact
Authorizations:
Request Body schema: application/jsonrequired
custom_metadata | object (custom-metadata-artifact) <= 1000000 characters A JSON object that informs the metadata that will be associated with this artifact's binaries when they are included in bundles. Max size is 1,000,000 bytes (1 MB). |
description | string (artifact-description) [ 1 .. 256 ] characters |
id | string (custom-id) A user provided custom UUID id for the resource database record. This overrides peridio's autogenerated ID for the user provided one. Use with caution. |
name required | string (artifact-name) [ 1 .. 128 ] characters |
organization_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Request samples
- Payload
{- "custom_metadata": { },
- "description": "string",
- "id": "string",
- "name": "string",
- "organization_prn": "string"
}
Response samples
- 201
{- "artifact": {
- "custom_metadata": { },
- "description": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List artifacts
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
description |
: , ~ |
string | |
inserted_at |
: , > , >= , < , <= |
date-time | |
name |
: , ~ |
string | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
updated_at |
: , > , >= , < , <= |
date-time |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "artifacts": [
- {
- "custom_metadata": { },
- "description": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Retrieve an artifact
Authorizations:
path Parameters
artifact_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "artifact": {
- "custom_metadata": { },
- "description": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update an artifact
Authorizations:
path Parameters
artifact_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
custom_metadata | object (custom-metadata-artifact) <= 1000000 characters A JSON object that informs the metadata that will be associated with this artifact's binaries when they are included in bundles. Max size is 1,000,000 bytes (1 MB). |
description | string (artifact-description) [ 1 .. 256 ] characters |
name | string (artifact-name) [ 1 .. 128 ] characters |
Responses
Request samples
- Payload
{- "custom_metadata": { },
- "description": "string",
- "name": "string"
}
Response samples
- 200
{- "artifact": {
- "custom_metadata": { },
- "description": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Create an artifact version
Authorizations:
Request Body schema: application/jsonrequired
artifact_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
custom_metadata | object (custom-metadata-artifact-version) <= 1000000 characters A JSON object that informs the metadata that will be associated with this artifact version's binaries when they are included in bundles. Max size is 1,000,000 bytes (1 MB). |
description | string (artifact-version-description) [ 1 .. 256 ] characters |
id | string (custom-id) A user provided custom UUID id for the resource database record. This overrides peridio's autogenerated ID for the user provided one. Use with caution. |
version required | string (artifact-version-version) [ 1 .. 128 ] characters |
Responses
Request samples
- Payload
{- "artifact_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "id": "string",
- "version": "string"
}
Response samples
- 201
{- "artifact_version": {
- "artifact_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "organization_prn": "string",
- "prn": "string",
- "version": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List artifact versions
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
artifact_prn |
: |
string | |
description |
: , ~ |
string | |
inserted_at |
: , > , >= , < , <= |
date-time | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
updated_at |
: , > , >= , < , <= |
date-time |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "artifact_versions": [
- {
- "artifact_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "organization_prn": "string",
- "prn": "string",
- "version": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Retrieve artifact version
Authorizations:
path Parameters
artifact_version_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "artifact_version": {
- "artifact_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "organization_prn": "string",
- "prn": "string",
- "version": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update an artifact version
Authorizations:
path Parameters
artifact_version_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
custom_metadata | object (custom-metadata-artifact-version) <= 1000000 characters A JSON object that informs the metadata that will be associated with this artifact version's binaries when they are included in bundles. Max size is 1,000,000 bytes (1 MB). |
description | string (artifact-version-description) [ 1 .. 256 ] characters |
Responses
Request samples
- Payload
{- "custom_metadata": { },
- "description": "string"
}
Response samples
- 200
{- "artifact_version": {
- "artifact_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "organization_prn": "string",
- "prn": "string",
- "version": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Create a binary
Create a binary record.
Authorizations:
Request Body schema: application/jsonrequired
artifact_version_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
custom_metadata | object (custom-metadata-binary) <= 1000000 characters A JSON object that informs the metadata that will be associated with this binary when it is included in bundles. Max size is 1,000,000 bytes (1 MB). |
description | string (binary-description) [ 1 .. 256 ] characters |
hash required | string (binary-hash) The lowercase hex encoding of the SHA256 hash of the binary's data. |
id | string (custom-id) A user provided custom UUID id for the resource database record. This overrides peridio's autogenerated ID for the user provided one. Use with caution. |
size required | integer (binary-size) [ 0 .. 53687091200000 ] The expected size in bytes of the binary. |
target required | string (target-triplet) [ 1 .. 128 ] characters A target triplet string that specifies compaitibility between binaries and devices. |
Responses
Request samples
- Payload
{- "artifact_version_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "hash": "string",
- "id": "string",
- "size": 1800000,
- "target": "arm-linux-androideabi"
}
Response samples
- 201
{- "binary": {
- "artifact_version_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "hash": "string",
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "signatures": null,
- "size": 1800000,
- "state": "uploadable",
- "target": "arm-linux-androideabi",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List binaries
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
artifact_version_prn |
: |
string | |
description |
: , ~ |
string | |
hash |
: |
string | |
inserted_at |
: , > , >= , < , <= |
date-time | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
size |
: , > , >= , < , <= |
integer | |
target |
: , ~ |
string | |
updated_at |
: , > , >= , < , <= |
date-time |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "binaries": [
- {
- "artifact_version_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "hash": "string",
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "signatures": null,
- "size": 1800000,
- "state": "uploadable",
- "target": "arm-linux-androideabi",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Retrieve a binary
Authorizations:
path Parameters
binary_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "binary": {
- "artifact_version_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "hash": "string",
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "signatures": null,
- "size": 1800000,
- "state": "uploadable",
- "target": "arm-linux-androideabi",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update a binary
Authorizations:
path Parameters
binary_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
custom_metadata | object (custom-metadata-binary) <= 1000000 characters A JSON object that informs the metadata that will be associated with this binary when it is included in bundles. Max size is 1,000,000 bytes (1 MB). |
description | string (binary-description) [ 1 .. 256 ] characters |
state | string (binary-state) Enum: "uploadable" "hashable" "hashing" "signable" "signed" "destroyed" The binary state |
Responses
Request samples
- Payload
{- "custom_metadata": { },
- "description": "string",
- "state": "uploadable"
}
Response samples
- 200
{- "binary": {
- "artifact_version_prn": "string",
- "custom_metadata": { },
- "description": "string",
- "hash": "string",
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "signatures": null,
- "size": 1800000,
- "state": "uploadable",
- "target": "arm-linux-androideabi",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Create a Binary Part
Create a binary part.
Authorizations:
path Parameters
binary_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
index required | integer (binary-part-index) The binary part index order |
Request Body schema: application/jsonrequired
expected_binary_size required | integer (binary-part-size) [ 5242880 .. 5368709120 ] The expected size in bytes of the binary part. |
hash required | string (binary-part-hash) The lowercase hex encoding of the SHA256 hash of the binary part's data. |
size required | integer (binary-part-size) [ 5242880 .. 5368709120 ] The expected size in bytes of the binary part. |
Responses
Request samples
- Payload
{- "expected_binary_size": 1800000,
- "hash": "string",
- "size": 1800000
}
Response samples
- 201
{- "binary_part": {
- "binary_prn": "string",
- "hash": "string",
- "index": 0,
- "inserted_at": "2019-08-24T14:15:22Z",
- "organization_prn": "string",
- "prn": "string",
- "size": 1800000,
- "state": "uploadable",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List binary parts
Authorizations:
path Parameters
binary_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "binary_parts": [
- {
- "binary_prn": "string",
- "hash": "string",
- "index": 0,
- "inserted_at": "2019-08-24T14:15:22Z",
- "organization_prn": "string",
- "prn": "string",
- "size": 1800000,
- "state": "uploadable",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Create a binary signature
Attach a signature to a binary.
This endpoint must be used against a binary that is already uploaded completely. The request will fail if the signature is invalid.
Authorizations:
Request Body schema: application/jsonrequired
binary_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
signing_key_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
signature required | string (binary-signature-signature) The lowercase hex encoding of the ed25519 signature of the base16 encoding of the SHA256 hash of the binary. |
Responses
Request samples
- Payload
{- "binary_prn": "string",
- "signing_key_prn": "string",
- "signature": "string"
}
Response samples
- 201
{- "binary_signature": {
- "binary_prn": "string",
- "organization_prn": "string",
- "prn": "string",
- "signature": "string",
- "signing_key_prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Delete a binary signature
Authorizations:
path Parameters
binary_signature_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Use signing keys instead.
Create a key Deprecated
Authorizations:
path Parameters
organization_name required | string (organization-name) |
Request Body schema: application/jsonrequired
key required | string (key-key) |
name required | string (key-name) |
Responses
Request samples
- Payload
{- "key": "string",
- "name": "string"
}
Response samples
- 201
{- "data": {
- "key": "string",
- "name": "string"
}
}
Create a signing key
Authorizations:
Request Body schema: application/jsonrequired
value required | string (signing-key-value) [ 1 .. 256 ] characters |
name required | string (signing-key-name) [ 1 .. 128 ] characters |
organization_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Request samples
- Payload
{- "value": "string",
- "name": "string",
- "organization_prn": "string"
}
Response samples
- 201
{- "signing_key": {
- "value": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List signing keys
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
inserted_at |
: , > , >= , < , <= |
date-time | |
name |
: , ~ |
string | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
updated_at |
: , > , >= , < , <= |
date-time | |
value |
: |
string |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "signing_keys": [
- {
- "value": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Retrieve a signing key
Authorizations:
path Parameters
signing_key_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "signing_key": {
- "value": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update a signing key
Authorizations:
path Parameters
signing_key_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
value | string (signing-key-value) [ 1 .. 256 ] characters |
name | string (signing-key-name) [ 1 .. 128 ] characters |
Responses
Request samples
- Payload
{- "value": "string",
- "name": "string"
}
Response samples
- 200
{- "signing_key": {
- "value": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Delete a signing key
Authorizations:
path Parameters
signing_key_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 204
{- "signing_key": {
- "value": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Legacy
This functionality is only available to select organizations participating in the Peridio closed beta program.
Subject to breaking changes prior to general availability.
For more information, see content labels.
List firmware
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Responses
Response samples
- 200
{- "data": [
- {
- "architecture": "string",
- "author": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "platform": "string",
- "product": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "vcs_identifier": "d670460b4b4aece5915caf5c68d12f560a9fe3e4",
- "version": "1.0.0-alpha.3"
}
]
}
Create a firmware
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Request Body schema: multipart/form-data
firmware required | string <binary> Reference firmware file requirements. |
ttl | integer |
Responses
Response samples
- 201
- 500
{- "data": {
- "architecture": "string",
- "author": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "platform": "string",
- "product": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "vcs_identifier": "d670460b4b4aece5915caf5c68d12f560a9fe3e4",
- "version": "1.0.0-alpha.3"
}
}
Delete a firmware
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
firmware_uuid required | string <uuid> (firmware-uuid) Uniquely identifies a firmware. |
Responses
Response samples
- 204
{- "architecture": "string",
- "author": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "platform": "string",
- "product": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "vcs_identifier": "d670460b4b4aece5915caf5c68d12f560a9fe3e4",
- "version": "1.0.0-alpha.3"
}
Retrieve a firmware
Expandable
This endpoint has an expandable response. See expanding responses.
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
firmware_uuid required | string <uuid> (firmware-uuid) Uniquely identifies a firmware. |
query Parameters
expand | Array of strings See expanding responses. Expandable Fields For more information on each field, reference the response.
|
Responses
Response samples
- 200
{- "data": {
- "architecture": "string",
- "author": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "platform": "string",
- "product": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "vcs_identifier": "d670460b4b4aece5915caf5c68d12f560a9fe3e4",
- "version": "1.0.0-alpha.3",
- "url": "string"
}
}
Labs
This functionality is only available to select organizations participating in the Peridio closed beta program.
Subject to breaking changes prior to general availability.
For more information, see content labels.
List tunnels
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
state |
: |
string | |
device_prn |
: |
prn | |
organization_prn |
X | : |
prn |
state
can be one of requested
, open
, closed
.
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Request Body schema: application/jsonrequired
search | string (search-with-org) The |
Responses
Request samples
- Payload
{- "search": "organization_prn:'prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef'"
}
Response samples
- 200
{- "tunnels": [
- {
- "cidr_block_allowlist": [
- "10.0.0.1/16",
- "172.154.0.1/16"
], - "device_proxy_ip_address": "10.0.1.1",
- "device_proxy_port": 47539,
- "device_public_key": "Y4nCIXdpb+f3WgPi0377FDPCAfP+st82s98lTRepHEk=",
- "device_tunnel_port": 22,
- "server_proxy_ip_address": "10.0.0.1",
- "server_proxy_port": 49293,
- "server_public_key": "2+h9vwIwg/1zTW9XLFzUmiTwCRRq7mzLgDnZfWEislY=",
- "server_tunnel_ip_address": "3.82.23.99",
- "server_tunnel_port": 47532,
- "expires_at": "2019-08-24T14:15:22Z",
- "state": "requested",
- "device_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "organization_prn": "string",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:tunnel:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Create a tunnel
Create a tunnel to a device for remote access.
LabsThe tunnel is available via a public IP address and port for a configurable amount of time. Anyone can send data through the tunnel and it is your responsibility to enforce authentication and authorization if desired.
Authorizations:
Request Body schema: application/jsonrequired
device_prn required | string (device-prn) Identifies which device to create a tunnel for. |
device_tunnel_port required | number (device-tunnel-port) The port on which the device is listening for service traffic (e.g. ssh). |
cidr_block_allowlist | Array of strings (cidr-block-allowlist) A set of CIDR blocks that are allowed to connect to the tunnel. |
ttl | number [ 1 .. 3600 ] Default: 3600 The amount of time in seconds that the tunnel is available for. |
Responses
Request samples
- Payload
{- "device_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "device_tunnel_port": 22,
- "cidr_block_allowlist": [
- "10.0.0.1/16",
- "172.154.0.1/16"
], - "ttl": 3600
}
Response samples
- 201
{- "tunnel": {
- "cidr_block_allowlist": [
- "10.0.0.1/16",
- "172.154.0.1/16"
], - "device_proxy_ip_address": null,
- "device_proxy_port": null,
- "device_public_key": null,
- "device_tunnel_port": 22,
- "server_proxy_ip_address": null,
- "server_proxy_port": null,
- "server_public_key": null,
- "server_tunnel_ip_address": "3.82.23.99",
- "server_tunnel_port": null,
- "expires_at": "2019-08-24T14:15:22Z",
- "state": "requested",
- "device_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "organization_prn": "string",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:tunnel:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Retrieve a tunnel
Authorizations:
path Parameters
tunnel_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "tunnel": {
- "cidr_block_allowlist": [
- "10.0.0.1/16",
- "172.154.0.1/16"
], - "device_proxy_ip_address": "10.0.1.1",
- "device_proxy_port": 47539,
- "device_public_key": "Y4nCIXdpb+f3WgPi0377FDPCAfP+st82s98lTRepHEk=",
- "device_tunnel_port": 22,
- "server_proxy_ip_address": "10.0.0.1",
- "server_proxy_port": 49293,
- "server_public_key": "2+h9vwIwg/1zTW9XLFzUmiTwCRRq7mzLgDnZfWEislY=",
- "server_tunnel_ip_address": "3.82.23.99",
- "server_tunnel_port": 47532,
- "expires_at": "2019-08-24T14:15:22Z",
- "state": "requested",
- "device_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "organization_prn": "string",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:tunnel:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update a tunnel
Update a tunnel
- allows changing a tunnel to a closed state.
- allows extending the expiration (the number of seconds from current time).
Authorizations:
path Parameters
tunnel_prn required | string (tunnel-prn) Example: prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:tunnel:b3f1f699-3bc8-4c77-bda2-b974595d5e3f Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
state | string The state we want the tunnel to be in. Only accepts "closed". |
ttl | number [ 1 .. 3600 ] The amount of time in seconds to extend the tunnel for. |
Responses
Request samples
- Payload
{- "state": "closed",
- "ttl": 1
}
Response samples
- 200
{- "data": {
- "cidr_block_allowlist": [
- "10.0.0.1/16",
- "172.154.0.1/16"
], - "device_proxy_ip_address": "10.0.1.1",
- "device_proxy_port": 47539,
- "device_public_key": "Y4nCIXdpb+f3WgPi0377FDPCAfP+st82s98lTRepHEk=",
- "device_tunnel_port": 22,
- "server_proxy_ip_address": "10.0.0.1",
- "server_proxy_port": 49293,
- "server_public_key": "2+h9vwIwg/1zTW9XLFzUmiTwCRRq7mzLgDnZfWEislY=",
- "server_tunnel_ip_address": "3.82.23.99",
- "server_tunnel_port": 47532,
- "expires_at": "2019-08-24T14:15:22Z",
- "state": "closed",
- "device_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "organization_prn": "string",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:tunnel:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Create a web console shell
Create a self-authenticating, one-time use, expiring URL to a device remote shell in the Peridio web console.
Once a request is made to the returned URL, it cannot be used again. For example, refreshing the page will fail.
You must supply either:
device_prn
Or:
device_identifier
andorganization_prn
Authorizations:
Request Body schema: application/jsonrequired
device_identifier | string (device-identifier) Identifies which device to create a web console shell for. Mutually exclusive with |
device_prn | string (device-prn) Identifies which device to create a web console shell for. Mutually exclusive with |
organization_prn | string (device-prn) Identifies which organization the device belongs to if supplying Mutually exclusive with |
ttl | integer [ 0 .. 86400 ] Default: 3600 The amount of time in seconds that the URL is valid for. Open connections are closed automatically upon expiration. |
Responses
Request samples
- Payload
{- "device_identifier": "sn1234",
- "device_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "organization_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "ttl": 3600
}
Response samples
- 201
{- "expires_at": "2019-08-24T14:15:22Z",
}
List CA certificates
Authorizations:
path Parameters
organization_name required | string (organization-name) |
Responses
Response samples
- 200
{- "data": [
- {
- "description": "string",
- "not_after": "2019-08-24T14:15:22Z",
- "not_before": "2019-08-24T14:15:22Z",
- "serial": "522154175989108335861639249273408275957749326848"
}
]
}
Create a CA certificate
Authorizations:
path Parameters
organization_name required | string (organization-name) |
Request Body schema: application/jsonrequired
certificate required | string Base64 encoded CA certificate. |
verification_certificate required | string Base64 encoded verification certificate. See: create-a-ca-verification-code |
description | string |
object (ca-jitp) |
Responses
Request samples
- Payload
{- "certificate": "string",
- "verification_certificate": "string",
- "description": "string",
- "jitp": {
- "description": "string",
- "product_name": "string",
- "tags": [
- "string"
], - "cohort_prn": "string",
- "target": "string"
}
}
Response samples
- 201
{- "data": {
- "description": "string",
- "not_after": "2019-08-24T14:15:22Z",
- "not_before": "2019-08-24T14:15:22Z",
- "serial": "522154175989108335861639249273408275957749326848"
}
}
Retrieve a CA certificate
Authorizations:
path Parameters
organization_name required | string (organization-name) |
ca_certificate_serial required | string (ca-certificate-serial) Example: 522154175989108335861639249273408275957749326848 |
Responses
Response samples
- 200
{- "data": {
- "description": "string",
- "not_after": "2019-08-24T14:15:22Z",
- "not_before": "2019-08-24T14:15:22Z",
- "serial": "522154175989108335861639249273408275957749326848"
}
}
Update CA certificate
Authorizations:
path Parameters
organization_name required | string (organization-name) |
ca_certificate_serial required | string (ca-certificate-serial) Example: 522154175989108335861639249273408275957749326848 |
Request Body schema: application/jsonrequired
description | string |
object (ca-jitp) |
Responses
Request samples
- Payload
{- "description": "string",
- "jitp": {
- "description": "string",
- "product_name": "string",
- "tags": [
- "string"
], - "cohort_prn": "string",
- "target": "string"
}
}
Response samples
- 200
{- "data": {
- "description": "string",
- "not_after": "2019-08-24T14:15:22Z",
- "not_before": "2019-08-24T14:15:22Z",
- "serial": "522154175989108335861639249273408275957749326848"
}
}
Create a cohort
Authorizations:
Request Body schema: application/jsonrequired
description | string (cohort-description) [ 1 .. 256 ] characters |
name required | string (cohort-name) [ 1 .. 128 ] characters |
organization_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
product_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Request samples
- Payload
{- "description": "string",
- "name": "string",
- "organization_prn": "string",
- "product_prn": "string"
}
Response samples
- 201
{- "cohort": {
- "description": "string",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "product_prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List cohorts
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
description |
: , ~ |
string | |
inserted_at |
: , > , >= , < , <= |
date-time | |
name |
: , ~ |
string | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
updated_at |
: , > , >= , < , <= |
date-time |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "cohorts": [
- {
- "description": "string",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "product_prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Retrieve a cohort
Authorizations:
path Parameters
cohort_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "cohort": {
- "description": "string",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "product_prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update a cohort
Authorizations:
path Parameters
cohort_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
description | string (cohort-description) [ 1 .. 256 ] characters |
name | string (cohort-name) [ 1 .. 128 ] characters |
Responses
Request samples
- Payload
{- "description": "string",
- "name": "string"
}
Response samples
- 200
{- "cohort": {
- "description": "string",
- "name": "string",
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "product_prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List device certificates
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
device_identifier required | string (device-identifier) Example: sn1234 Uniquely identifies a device within an organization. |
Responses
Response samples
- 200
{- "data": [
- {
- "not_after": "2019-08-24T14:15:22Z",
- "not_before": "2019-08-24T14:15:22Z",
- "serial": "522154175989108335861639249273408275957749326848"
}
]
}
Create a device certificate
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
device_identifier required | string (device-identifier) Example: sn1234 Uniquely identifies a device within an organization. |
Request Body schema: application/jsonrequired
cert required | string (device-certificate-pem-base64) Base64 encoded device certificate pem. |
Responses
Request samples
- Payload
{- "cert": "string"
}
Response samples
- 201
{- "data": {
- "not_after": "2019-08-24T14:15:22Z",
- "not_before": "2019-08-24T14:15:22Z",
- "serial": "522154175989108335861639249273408275957749326848"
}
}
Retrieve a device certificate
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
device_identifier required | string (device-identifier) Example: sn1234 Uniquely identifies a device within an organization. |
certificate_serial required | string (device-certificate-serial) Example: 522154175989108335861639249273408275957749326848 |
Responses
Response samples
- 200
{- "data": {
- "not_after": "2019-08-24T14:15:22Z",
- "not_before": "2019-08-24T14:15:22Z",
- "serial": "522154175989108335861639249273408275957749326848"
}
}
Delete a device certificate
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
device_identifier required | string (device-identifier) Example: sn1234 Uniquely identifies a device within an organization. |
certificate_serial required | string (device-certificate-serial) Example: 522154175989108335861639249273408275957749326848 |
Responses
List devices
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Responses
Response samples
- 200
{- "data": [
- {
- "cohort_prn": "string",
- "description": { },
- "firmware_metadata": { },
- "healthy": { },
- "identifier": "sn1234",
- "last_communication": "never",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "status": "offline",
- "tags": { },
- "version": "1.0.0-alpha.3"
}
]
}
Create a device
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Request Body schema: application/jsonrequired
cohort_prn | string (device-cohort-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
description | string (device-description) |
healthy | boolean (device-healthy) |
identifier required | string (device-identifier) Uniquely identifies a device within an organization. |
last_communication | string <date-time> (device-last-communication) |
tags | Array of strings (array-of-device-tags) |
target | string (target-triplet) [ 1 .. 128 ] characters A target triplet string that specifies compaitibility between binaries and devices. |
Responses
Request samples
- Payload
{- "cohort_prn": "string",
- "description": "string",
- "healthy": true,
- "identifier": "sn1234",
- "last_communication": "2019-08-24T14:15:22Z",
- "tags": [
- "string"
], - "target": "arm-linux-androideabi"
}
Response samples
- 201
{- "cohort_prn": "string",
- "description": { },
- "firmware_metadata": { },
- "healthy": { },
- "identifier": "sn1234",
- "last_communication": "never",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "status": "offline",
- "tags": { },
- "version": "1.0.0-alpha.3"
}
Delete a device
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
device_identifier required | string (device-identifier) Example: sn1234 Uniquely identifies a device within an organization. |
Responses
Retrieve a device
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
device_identifier required | string (device-identifier) Example: sn1234 Uniquely identifies a device within an organization. |
Responses
Response samples
- 200
{- "data": {
- "cohort_prn": "string",
- "description": { },
- "firmware_metadata": { },
- "healthy": { },
- "identifier": "sn1234",
- "last_communication": "never",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "status": "offline",
- "tags": { },
- "version": "1.0.0-alpha.3"
}
}
Update a device
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
device_identifier required | string (device-identifier) Example: sn1234 Uniquely identifies a device within an organization. |
Request Body schema: application/jsonrequired
cohort_prn | string (device-cohort-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
description | string (device-description) |
healthy | boolean (device-healthy) |
last_communication | string <date-time> (device-last-communication) |
tags | Array of strings (array-of-device-tags) |
target | string (target-triplet) [ 1 .. 128 ] characters A target triplet string that specifies compaitibility between binaries and devices. |
Responses
Request samples
- Payload
{- "cohort_prn": "string",
- "description": "string",
- "healthy": true,
- "last_communication": "2019-08-24T14:15:22Z",
- "tags": [
- "string"
], - "target": "arm-linux-androideabi"
}
Response samples
- 200
{- "data": {
- "cohort_prn": "string",
- "description": { },
- "firmware_metadata": { },
- "healthy": { },
- "identifier": "sn1234",
- "last_communication": "never",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "status": "offline",
- "tags": { },
- "version": "1.0.0-alpha.3"
}
}
Authenticate device
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Request Body schema: application/jsonrequired
certificate required | string (device-certificate-pem-base64) Base64 encoded device certificate pem. |
Responses
Request samples
- Payload
{- "certificate": "string"
}
Response samples
- 200
{- "data": {
- "cohort_prn": "string",
- "description": { },
- "firmware_metadata": { },
- "healthy": { },
- "identifier": "sn1234",
- "last_communication": "never",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "status": "offline",
- "tags": { },
- "version": "1.0.0-alpha.3"
}
}
Create a product Deprecated
Authorizations:
path Parameters
organization_name required | string (organization-name) |
Request Body schema: application/jsonrequired
name required | string (product-name) Uniquely identifies a product within an organization. |
Responses
Request samples
- Payload
{- "name": "string"
}
Response samples
- 201
{- "data": {
- "name": "string",
- "prn": "string"
}
}
Retrieve a product Deprecated
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Responses
Response samples
- 200
{- "data": {
- "name": "string",
- "prn": "string"
}
}
Update a product Deprecated
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Request Body schema: application/jsonrequired
required | object | ||
|
Responses
Request samples
- Payload
{- "product": {
- "name": "string"
}
}
Response samples
- 200
{- "data": {
- "name": "string",
- "prn": "string"
}
}
List products v2
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
deleted_at |
: , > , >= , < , <= |
date-time | |
inserted_at |
: , > , >= , < , <= |
date-time | |
name |
: , ~ |
string | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
updated_at |
: , > , >= , < , <= |
date-time |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. | |||||||||||||||||||||
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by | |||||||||||||||||||||
search required | string A search query per the search query language. Searchable fields:
| |||||||||||||||||||||
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "products": [
- {
- "archived": false,
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Create a product v2
Authorizations:
Request Body schema: application/jsonrequired
archived | boolean (product-archived) |
name required | string (product-name) Uniquely identifies a product within an organization. |
organization_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Request samples
- Payload
{- "archived": false,
- "name": "string",
- "organization_prn": "string"
}
Response samples
- 201
{- "product": {
- "archived": false,
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Retrieve a product v2
Authorizations:
path Parameters
product_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "data": {
- "archived": false,
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update a product v2
Authorizations:
path Parameters
product_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
archived | boolean (product-archived) A product cannot be archived if any of the following are true:
|
name | string (product-name) Uniquely identifies a product within an organization. |
Responses
Request samples
- Payload
{- "archived": false,
- "name": "string"
}
Response samples
- 200
{- "data": {
- "archived": false,
- "inserted_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "prn": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Create a webhook
Authorizations:
Request Body schema: application/jsonrequired
description | string (webhook-description) |
url | string (webhook-url) |
enabled_events | Array of any (webhook-enabled-events) Items Enum: "device.release_changed" "webhook.test_fire" |
organization_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Request samples
- Payload
{- "description": "string",
- "url": "string",
- "enabled_events": [
- "device.release_changed"
], - "organization_prn": "string"
}
Response samples
- 201
{- "webhook": {
- "state": "enabled",
- "inserted_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "description": "string",
- "enabled_events": [
- "device.release_changed"
], - "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "updated_at": "2019-08-24T14:15:22Z",
- "secret": "C4FE345F29EF6156BD40B6DF73625243"
}
}
List webhooks
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
description |
: , ~ |
string | |
inserted_at |
: , > , >= , < , <= |
date-time | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
updated_at |
: , > , >= , < , <= |
date-time |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "webhooks": [
- {
- "state": "enabled",
- "inserted_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "description": "string",
- "enabled_events": [
- "device.release_changed"
], - "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Retrieve a webhook
Authorizations:
path Parameters
webhook_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "webhook": {
- "state": "enabled",
- "inserted_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "description": "string",
- "enabled_events": [
- "device.release_changed"
], - "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update a webhook
Authorizations:
path Parameters
webhook_prn required | string (webhook-prn) Example: prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
description | string (webhook-description) |
url | string (webhook-url) |
enabled_events | Array of any (webhook-enabled-events) Items Enum: "device.release_changed" "webhook.test_fire" |
state | any (webhook-state) Enum: "enabled" "disabled" |
Responses
Request samples
- Payload
{- "description": "string",
- "url": "string",
- "enabled_events": [
- "device.release_changed"
], - "state": "enabled"
}
Response samples
- 200
{- "webhook": {
- "state": "enabled",
- "inserted_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "description": "string",
- "enabled_events": [
- "device.release_changed"
], - "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Delete a webhook
Authorizations:
path Parameters
webhook_prn required | string (webhook-prn) Example: prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Roll a webhook's secret
Authorizations:
path Parameters
webhook_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonoptional
webhook_ttl | integer (webhook-ttl) The amount of time in seconds that the old secret and the new secret will co-exist. While they do, dual signature values will be provided with webhook executions. See the webhooks reference. |
Responses
Request samples
- Payload
{- "webhook_ttl": 0
}
Response samples
- 200
{- "webhook": {
- "state": "enabled",
- "inserted_at": "2019-08-24T14:15:22Z",
- "url": "string",
- "description": "string",
- "enabled_events": [
- "device.release_changed"
], - "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "updated_at": "2019-08-24T14:15:22Z",
- "secret": "C4FE345F29EF6156BD40B6DF73625243"
}
}
Test fire a webhook
Authorizations:
path Parameters
webhook_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "event": {
- "data": {
- "type": "test_fire",
- "data": {
- "webhook_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f"
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "webhook",
- "version": 1
}
}
Create a bundle
Authorizations:
Request Body schema: application/jsonrequired
organization_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
artifact_version_prns required | Array of strings (array-of-artifact-version-prns) |
id | string (custom-id) A user provided custom UUID id for the resource database record. This overrides peridio's autogenerated ID for the user provided one. Use with caution. |
null or string (bundle-name) |
Responses
Request samples
- Payload
{- "organization_prn": "string",
- "artifact_version_prns": [
- "string"
], - "id": "string",
- "name": { }
}
Response samples
- 201
{- "bundle": {
- "artifact_versions": [
- {
- "prn": "string",
- "index": 0
}
], - "name": { },
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
list bundles
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
inserted_at |
: , > , >= , < , <= |
date-time | |
name |
: , ~ , - |
string | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
updated_at |
: , > , >= , < , <= |
date-time |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "bundles": [
- {
- "artifact_versions": [
- {
- "prn": "string",
- "index": 0
}
], - "name": { },
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "next_page": "string"
}
Retrieve a bundle
Authorizations:
path Parameters
bundle_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "bundle": {
- "artifact_versions": [
- {
- "prn": "string",
- "index": 0
}
], - "name": { },
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
Update a bundle
Authorizations:
path Parameters
bundle_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
null or string (bundle-name) | |
One of null |
Responses
Request samples
- Payload
{- "name": { }
}
Response samples
- 200
{- "bundle": {
- "artifact_versions": [
- {
- "prn": "string",
- "index": 0
}
], - "name": { },
- "organization_prn": "string",
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
List deployments
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Responses
Response samples
- 200
{- "data": [
- {
- "conditions": {
- "tags": [
- "string"
], - "version": "== 1.0.0"
}, - "delta_updatable": true,
- "firmware_uuid": "ad4e7819-9176-4c88-8ecc-459ee9868725",
- "is_active": true,
- "name": "string",
- "state": "on"
}
]
}
Create a deployment
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
Request Body schema: application/jsonrequired
required | object (deployment-conditions) |
delta_updatable | boolean (delta-updatable) Default: false |
firmware required | string <uuid> (firmware-uuid) Uniquely identifies a firmware. |
is_active required | boolean (deployment-is-active) Must be |
name required | string (deployment-name) |
Responses
Request samples
- Payload
{- "conditions": {
- "tags": [
- "string"
], - "version": "== 1.0.0"
}, - "delta_updatable": true,
- "firmware": "a3a072e2-291e-4454-88c4-f2689e9ad8c7",
- "is_active": true,
- "name": "string"
}
Response samples
- 201
{- "data": {
- "conditions": {
- "tags": [
- "string"
], - "version": "== 1.0.0"
}, - "delta_updatable": true,
- "firmware_uuid": "ad4e7819-9176-4c88-8ecc-459ee9868725",
- "is_active": true,
- "name": "string",
- "state": "on"
}
}
Retrieve a deployment
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
deployment_name required | string (deployment-name) |
Responses
Response samples
- 200
{- "data": {
- "conditions": {
- "tags": [
- "string"
], - "version": "== 1.0.0"
}, - "delta_updatable": true,
- "firmware_uuid": "ad4e7819-9176-4c88-8ecc-459ee9868725",
- "is_active": true,
- "name": "string",
- "state": "on"
}
}
Update a deployment
Authorizations:
path Parameters
organization_name required | string (organization-name) |
product_name required | string (product-name) Uniquely identifies a product within an organization. |
deployment_name required | string (deployment-name) |
Request Body schema: application/jsonrequired
required | object | ||||||||||
|
Responses
Request samples
- Payload
{- "deployment": {
- "name": "string",
- "conditions": {
- "tags": [
- "string"
], - "version": "== 1.0.0"
}, - "delta_updatable": true,
- "firmware": "a3a072e2-291e-4454-88c4-f2689e9ad8c7",
- "is_active": true
}
}
Response samples
- 200
{- "data": {
- "conditions": {
- "tags": [
- "string"
], - "version": "== 1.0.0"
}, - "delta_updatable": true,
- "firmware_uuid": "ad4e7819-9176-4c88-8ecc-459ee9868725",
- "is_active": true,
- "name": "string",
- "state": "on"
}
}
Create a release
Authorizations:
Request Body schema: application/jsonrequired
bundle_prn required | string (prn) The bundle the release will distribute to devices. |
phase_mode | string (release-phase-mode) Default: "numeric" Enum: "tags" "numeric" Describes if this release is using tag or numeric based phasing. tags or phase value for resolution
|
phase_tags | Array of strings (release-phase-tags) Limits by tags the devices that are allowed to update to this release. Required if: When |
phase_value | number (release-phase-value) [ 0 .. 1000000000 ] Limits by percent or static count the number of devices that are allowed to update to this release. Required if: When
NOTE: A release with a NOTE: There can only ever be a single release that is phased at a time within a cohort. Because of this, if there is already a phased release, it must be "completed" by setting the phase to |
cohort_prn required | string (prn) The cohort to create the release within, and in turn the cohort it will distribute its bundle to. |
string or null (release-description) | |
disabled | boolean (release-disabled) If a release is marked as disabled it cannot be resolved during release resolution. |
name required | string (release-name) |
next_release_prn | string (prn) If omitted, the release will be created as latest within the cohort. If there is already at least one release in the cohort, then the latest release in that cohort would have its If supplied, the release will be created prior to the release identified by |
previous_release_prn | string (prn) If omitted, In order to insert a release between two other releases, |
organization_prn required | string (prn) The organization to create the release within. |
required required | boolean (release-required) If If |
schedule_date required | string <date-time> (release-schedule-availability) Before this date-time, the release will not be resolvable when checking for updates. You may use this to schedule a future release. |
version | string (release-version) The release version. If provided, it has to be a valid version. Used in dynamic release resolution. |
version-requirement | string (release-version-requirement) The release version requirement. If provided, it has to be a valid requirement. Used in dynamic release resolution. |
Responses
Request samples
- Payload
{- "bundle_prn": "string",
- "phase_mode": "tags",
- "phase_tags": [
- "string"
], - "phase_value": 1000000000,
- "cohort_prn": "string",
- "description": null,
- "disabled": true,
- "name": "string",
- "next_release_prn": "string",
- "previous_release_prn": "string",
- "organization_prn": "string",
- "required": true,
- "schedule_date": "2019-08-24T14:15:22Z",
- "version": "1.0.0",
- "version-requirement": "== 1.0.0"
}
Response samples
- 201
{- "release": {
- "bundle_prn": "string",
- "cohort_prn": "string",
- "description": null,
- "disabled": true,
- "name": "string",
- "next_release_prn": { },
- "organization_prn": "string",
- "phase_mode": "tags",
- "phase_tags": [
- "string"
], - "phase_type": "static",
- "phase_value": 1000000000,
- "required": true,
- "schedule_date": "2019-08-24T14:15:22Z",
- "schedule_complete": true,
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "1.0.0",
- "version_requirement": "== 1.0.0"
}
}
List Releases
Search
This resource has the following searchable fields.
Key | Required | Operators | Value |
---|---|---|---|
cohort_prn |
: |
string | |
deleted_at |
: , > , >= , < , <= |
date-time | |
description |
: , ~ |
string | |
inserted_at |
: , > , >= , < , <= |
date-time | |
name |
: , ~ |
string | |
next_release_prn |
: |
string | |
organization_prn |
X | : |
prn |
prn |
: |
string | |
updated_at |
: , > , >= , < , <= |
date-time | |
version_requirement |
: , - |
string | |
version |
: , - |
string |
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
search required | string A search query per the search query language. |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
Responses
Response samples
- 200
{- "next_page": "string",
- "releases": [
- {
- "bundle_prn": "string",
- "cohort_prn": "string",
- "description": null,
- "disabled": true,
- "name": "string",
- "next_release_prn": { },
- "organization_prn": "string",
- "phase_mode": "tags",
- "phase_tags": [
- "string"
], - "phase_type": "static",
- "phase_value": 1000000000,
- "required": true,
- "schedule_date": "2019-08-24T14:15:22Z",
- "schedule_complete": true,
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "1.0.0",
- "version_requirement": "== 1.0.0"
}
]
}
Retrieve a release
Authorizations:
path Parameters
release_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Responses
Response samples
- 200
{- "release": {
- "bundle_prn": "string",
- "cohort_prn": "string",
- "description": null,
- "disabled": true,
- "name": "string",
- "next_release_prn": { },
- "organization_prn": "string",
- "phase_mode": "tags",
- "phase_tags": [
- "string"
], - "phase_type": "static",
- "phase_value": 1000000000,
- "required": true,
- "schedule_date": "2019-08-24T14:15:22Z",
- "schedule_complete": true,
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "1.0.0",
- "version_requirement": "== 1.0.0"
}
}
Update a release
Authorizations:
path Parameters
release_prn required | string (prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
Request Body schema: application/jsonrequired
string or null (release-description) | |
disabled | boolean (release-disabled) If a release is marked as disabled it cannot be resolved during release resolution. |
name | string (release-name) |
next_release_prn | string (prn) Update the release's |
phase_mode | string (release-phase-mode) Enum: "tags" "numeric" Describes if this release is using tag or numeric based phasing. tags or phase value for resolution
|
phase_tags | Array of strings (release-phase-tags) Limits by tags the devices that are allowed to update to this release. Required if: When |
phase_value | number (release-phase-value) [ 0 .. 1000000000 ] Limits by percent or static count the number of devices that are allowed to update to this release. Required if: When
NOTE: A release with a NOTE: There can only ever be a single release that is phased at a time within a cohort. Because of this, if there is already a phased release, it must be "completed" by setting the phase to |
required | boolean (release-required) If If |
schedule_date | string <date-time> (release-schedule-availability) Before this date-time, the release will not be resolvable when checking for updates. You may use this to schedule a future release. |
version | string (release-version) The release version. If provided, it has to be a valid version. Used in dynamic release resolution. |
version-requirement | string (release-version-requirement) The release version requirement. If provided, it has to be a valid requirement. Used in dynamic release resolution. |
Responses
Request samples
- Payload
{- "description": null,
- "disabled": true,
- "name": "string",
- "next_release_prn": "string",
- "phase_mode": "tags",
- "phase_tags": [
- "string"
], - "phase_value": 1000000000,
- "required": true,
- "schedule_date": "2019-08-24T14:15:22Z",
- "version": "1.0.0",
- "version-requirement": "== 1.0.0"
}
Response samples
- 200
{- "release": {
- "bundle_prn": "string",
- "cohort_prn": "string",
- "description": null,
- "disabled": true,
- "name": "string",
- "next_release_prn": { },
- "organization_prn": "string",
- "phase_mode": "tags",
- "phase_tags": [
- "string"
], - "phase_type": "static",
- "phase_value": 1000000000,
- "required": true,
- "schedule_date": "2019-08-24T14:15:22Z",
- "schedule_complete": true,
- "prn": "string",
- "inserted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version": "1.0.0",
- "version_requirement": "== 1.0.0"
}
}
List events
List all possible events (Device, Webhooks, API Key, etc.) within the specified time range.
Authorizations:
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 Specifies the max length of the returned results. |
order | string Enum: "asc" "desc" Controls whether the order of results is ascending or descending by |
page | string A cursor for pagination across multiple pages of results. Don't include this parameter on
the first call. Use the |
inserted_at_lt | date-time The ending date point of the range of the query Must be greater than event_inserted_at_gte. The duration they specify must be <= 24 hours. |
inserted_at_gte | date-time The starting date point of the range of the query Must be lower than event_inserted_at_lt. The duration they specify must be <= 24 hours. |
actor_prn | string (prn) The event Actor PRN. |
resource_prn | string (prn) The event resource PRN. |
event_type | string Enum: "device" "webhook" "api_key" The kind of event |
event_subtype | string Enum: "release_changed" "claimed_release" "checked_for_release" "connected" "updated" "authentication_failed" "created" "request_failed" "test_fire" The action for the given event type |
Responses
Response samples
- 200
{- "events": [
- {
- "data": {
- "type": "created",
- "data": {
- "api_key_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:api_key:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "creator_prn": "prn:1:user:b3f1f699-3bc8-4c77-bda2-b974595d5e3f"
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "api_key",
- "version": 1,
- "actor_prn": "string",
- "resource_prn": "string",
- "event_subtype": "release_changed"
}
], - "next_page": "string"
}
Created Webhook
See the webhooks reference for a list of supported events.
This event is created when an api key is created.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "api_key" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "created",
- "data": {
- "api_key_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:api_key:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "creator_prn": "prn:1:user:b3f1f699-3bc8-4c77-bda2-b974595d5e3f"
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "api_key",
- "version": 1
}
Authentication failed Webhook
See the webhooks reference for a list of supported events.
This event is created when a device fails to authenticate to the Device API.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "device" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "authentication_failed",
- "data": {
- "reason": "device_is_archived",
- "ip_address": "192.168.0.1",
- "certificate": {
- "authority_key_identifier": "string",
- "common_name": "string",
- "fingerprint": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "ca_certificate": {
- "common_name": "string",
- "fingerprint": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "device": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "identifier": "sn1234",
- "cohort": {
- "cohort_prn": "string",
- "cohort_name": "string"
}
}
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "device",
- "version": 1
}
Checked for release Webhook
See the webhooks reference for a list of supported events.
This event is created when a device checks for an update with get-update.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "device" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "checked_for_release",
- "data": {
- "device": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "identifier": "sn1234",
- "cohort": {
- "cohort_prn": "string",
- "cohort_name": "string"
}
}, - "release": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:release:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "version": "1.0.0"
}, - "bundle": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:bundle:c0c25d62-26d4-40b8-b9ab-609936d5d6d0",
- "name": { }
}
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "device",
- "version": 1
}
Claimed release Webhook
See the webhooks reference for a list of supported events.
This event is created when a device claims access to a phased release during a get-update.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "device" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "claimed_release",
- "data": {
- "device": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "identifier": "sn1234",
- "cohort": {
- "cohort_prn": "string",
- "cohort_name": "string"
}
}, - "release": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:release:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "version": "1.0.0"
}
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "device",
- "version": 1
}
Connected Webhook
See the webhooks reference for a list of supported events.
This event is created when a device successfully completes a TLS handshake while connecting to the Peridio Device API.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "device" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "connected",
- "data": {
- "device": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "identifier": "sn1234",
- "cohort": {
- "cohort_prn": "string",
- "cohort_name": "string"
}
}, - "ip_address": "192.168.0.1",
- "certificate": {
- "authority_key_identifier": "string",
- "common_name": "string",
- "fingerprint": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "ca_certificate": {
- "common_name": "string",
- "fingerprint": "stringstringstringstringstringstringstringstringstringstringstri"
}, - "headers": {
- "peridio-release-prn": "prn:1:4b8c3b41-f1ce-4c09-83ee-9cb60eb71483:release:d39587b9-4445-4e91-8952-4af83b97fea6"
}
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "device",
- "version": 1
}
Release changed Webhook
See the webhooks reference for a list of supported events.
This event is created when a device informs Peridio of its current release or bundle via the peridio-release-prn
or peridio-bundle-prn
headers, and that release or bundle is different than the one Peridio currently had on record. In cases where a peridio-bundle-prn
header is supplied, the to_release
property will be null
.
For example, if Peridio thought the device was on release 1, but then the device informed Peridio it was on release 2, then this event would be created going from 1 to 2 along with the new release's bundle. Similarly, if Peridio thought the device was on bundle 1, but then the device informed Peridio it was on bundle 2, then this event would be created going from bundle 1 to 2, with a to_release
of null
.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "device" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "release_changed",
- "data": {
- "device": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "identifier": "sn1234",
- "cohort": {
- "cohort_prn": "string",
- "cohort_name": "string"
}
}, - "from_release": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:release:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "version": "1.0.0"
}, - "to_release": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:release:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "version": "1.0.0",
- "known": true
}, - "from_bundle": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:bundle:c0c25d62-26d4-40b8-b9ab-609936d5d6d0"
}, - "to_bundle": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:bundle:c0c25d62-26d4-40b8-b9ab-609936d5d6d0",
- "known": true
}
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "device",
- "version": 1
}
Updated Webhook
See the webhooks reference for a list of supported events.
This event is created when a device database record is updated.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "device" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "updated",
- "data": {
- "device": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:device:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "identifier": "sn1234",
- "cohort": {
- "cohort_prn": "string",
- "cohort_name": "string"
}, - "description": "string",
- "quarantined": true,
- "tags": { },
- "firmware": {
- "prn": "string",
- "vcs_identifier": { },
- "version": "1.0.0-alpha.3"
}, - "release": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:release:b3f1f699-3bc8-4c77-bda2-b974595d5e3f",
- "version": "1.0.0"
}, - "bundle": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:bundle:c0c25d62-26d4-40b8-b9ab-609936d5d6d0",
- "name": { }
}
}
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "device",
- "version": 1
}
Request failed Webhook
See the webhooks reference for a list of supported events.
This event is created when an attempt to publish an event via a webhook fails.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "webhook" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "request_failed",
- "data": {
- "type": "host_resolution_failed",
- "data": {
- "webhook": {
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f"
}
}
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "webhook",
- "version": 1
}
Test fire Webhook
See the webhooks reference for a list of supported events.
This event is created by the Peridio API test-fire-webhook endpoint as well as during URL verification.
header Parameters
peridio-signature | string Examples:
The webhook signature. See signature verification. |
peridio-published-at | string <date-time> The timestamp of when the event was published (not created). See signature verification. |
Request Body schema: application/jsonrequired
object Data associated with the | |
inserted_at | string <date-time> |
prn | string (event-prn) Peridio Resource Names (PRNs) uniquely identify Peridio resources. |
type | string Value: "webhook" |
version | integer Value: 1 |
Responses
Request samples
- Payload
{- "data": {
- "type": "test_fire",
- "data": {
- "webhook_prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:webhook:b3f1f699-3bc8-4c77-bda2-b974595d5e3f"
}
}, - "inserted_at": "2019-08-24T14:15:22Z",
- "prn": "prn:1:be4d30b4-de6b-47cd-85ea-a75e23fd63ef:event:e0040f63-4e1c-43e7-880a-d6986a35c499",
- "type": "webhook",
- "version": 1
}