Pixela API Document

API Document for Pixela ( https://pixe.la/ ) .

POST - /v1/users/<username>/channels


Create a new channel settings for notification.

HTTP Method , API endpoint

POST /v1/users/<username>/channels

Request Header

Key Description
X-USER-TOKEN [required] It is the authentication token specified at the time of user registration.

Request Body

Key Type Description
id string [required] It is an ID for identifying the channel settings.
Validation rule: ^[a-z][a-z0-9-]{1,16}
name string [required] It is the name of the channel settings.
type string [required] It is the channel type for notification. Onlyslack is supported.
detail object [required] Object that specifies the details of the type.
For information about detail for each `type', see below table.

detail when type is slack

Key Type Description
url string [required] Specifies the URL of the incoming webhook created by slack.
userName string [required] The name of the user to be notified by slack when a notification is made.
channelName string [required] The channel name of the slack to be notified.


$ curl -X POST https://pixe.la/v1/users/a-know/channels -H 'X-USER-TOKEN:thisissecret' -d '{"id":"my-channel","name":"My slack channel","type":"slack","detail":{"url":"https://hooks.slack.com/services/T035DA4QD/B06LMAV40/xxxx","userName":"Pixela Notification","channelName":"pixela-notify"}}'