Parrot

List Device Invites

List information for all device invites. Shows both pending invites and also previously accepted or rejected invites.

GET
/api/v1/device-invites

Create Device Invite

Creates a new device invite. This is the only method of adding a new device. It generates a unique code, and paired with /api/v1/device-invites/:id/qrcode allows the device to be connected to the account.

No params are required.

Note: Each invite can only be used once.

POST
/api/v1/device-invites

Show Device Invite

Shows the information about the device invite including whether it's still pending or has been accepted by the device. Shows the actual invite code, which might be useful in generating your own qrcode which takes the format parrot:invite_code.

GET
/api/v1/device-invites/:id

Show Device Invite QRCode

Generates and sends a QRCode image for the device_invite. Suitable for embedding within a page for phone to scan.

GET
/api/v1/device-invites/:id/qrcode

Delete Device Invite

Deletes the device invite. Ensuring it can't be used.

DELETE
/api/v1/device-invites/:id

List Devices

Retrieves a list of all devices belonging to the account.

GET
/api/v1/devices

Show Device

Shows information about a specific device.

GET
/api/v1/devices/:id

Delete Device

Deletes/Removes a device from the account. Once called the device will need to be invited again by using a new device_invite

DELETE
/api/v1/devices/:id

List SMS Jobs

Lists all the sms_jobs and their corresponding states.

GET
/api/v1/sms-jobs

Create SMS Job

Creates a new SMS job. This is the main interface for sending messages.

Details should be provided in a payload in the POST body. Needs to be assigned to one or more devices using device_filter.

POST
/api/v1/sms-jobs

Show SMS Job

Show all the information about the sms_job including the current sending status

GET
/api/v1/sms-jobs/:id

Cancel SMS Job

Cancels the sms_job. This will have no effect if it has already been picked up by the device for processing. Useful mostly for clearing stuck sms_jobs

POST
/api/v1/sms-jobs/:id/cancel