Create new channel with HTTP POST
(Required) Format for the HTTP response, specified as
(Required) Specify User API Key, which you can find in your profile. This key is different from the channel API keys.
(Optional) Specify an ID or name for the client making the request.
(Optional) Field 1 name.
(Optional) Field X name, where X is the field ID.
(Optional) Latitude in degrees.
(Optional) Longitude in degrees.
(Optional) Metadata for the channel, which can include JSON, XML, or any other data.
(Optional) Name of the channel.
(Optional) Whether the channel is public. The default is false.
|(Optional) Comma-separated list of tags.|
|(Optional) Web page URL for the channel.||string|
For the full list, see Error Codes.
You can use POSTMAN to try out your HTTP requests using the RESTful API for ThingSpeak. This example shows how to create a new channel using POSTMAN.
Create a channel titled "My Channel" with three named fields: "Stuff",
"Things", and "Data". Make the channel shared with everyone by setting the
true. Here is the
format of the request.
POST https://api.thingspeak.com/channels.json api_key=XXXXXXXXXXXXXXXX name=My Channel public_flag=true field1=Stuff field=Things field3=Data
In POSTMAN, select POST from the drop-down list of HTTP verbs,
in the address bar.
Enter the parameter
api_key and your User
API Key, which is found in Account >
Enter the additional parameters and values:
The response is in JSON format. Note the server response value of 200 OK, indicating successful creation of the channel.
The new channel is now available on your channels page.