Snippet API

Luckily there is something called automation. And yes, we support this magical creature as well. Down below you will find everything you need to automate with Neverbot.io.

Authentication

By default, you can use your API token (Which can be found within your account dashboard) to check if your authentication works.

To only authenticate yourself, you need to perform a POST request to the following URL:

https://neverbot.io/?neverbot_api=authenticate

As a content type, you need to define JSON:

Content-Type: application/json

Within the body of the request, you can simply send a JSON, which contains the neverbot_ussauth key, including your API key:

{
  "neverbot_ussauth": "YOUR_APIKEY"
}

Create Snippet

To create a snippet, you can use a very similar setup as for only checking your authentication. Therefore simply change the GET paremeter of the URL to create_snippet

https://neverbot.io/?neverbot_api=create_snippet

You can keep the content type as for checking your authentication at JSON.

To actually create the data, you have certain attributes available. Please find a list of all down below:

  1. title - Which refers as the title of the snippet.
  2. content - which is the Protected content of your snippet.
  3. settings - An array of various settings
    1. password - The possibility to set a password for your snippet.
    2. destruct - Automatically destruct snippet after certain calls.

Here is an example of how the request may look like:

{
  "neverbot_ussauth": "MY_API_KEY",
  "title": "My snippet title",
  "content": "The snippet content",
  "settings":{
    "password": "demotestoremote",
    "destruct": 10
  }
}

Update Snippet

To update a snippet, you can use the same structure as for creating it. There's only two differences: You need to set the snippet_slug and the neverbot_api parameter to update_snippet

https://neverbot.io/?neverbot_api=update_snippet

You can keep the content type as for checking your authentication at JSON.

It is required to set the slug of the snippet to update it. You can find the slug of the snippet in each URL. Down below you see what the slug looks like:

https://neverbot.io/snippet/1cpssdfesafdsdfshezjt6u5u46udf/

To actually update the data, you have certain attributes available. Please find a list of all down below:

  1. snippet_slug (Required) - The slug of the snippet
  2. title - Which refers as the title of the snippet.
  3. content - which is the Protected content of your snippet.
  4. settings - An array of various settings
    1. password - The possibility to set a password for your snippet.
    2. destruct - Automatically destruct snippet after certain calls.
    3. create_if_none - Create the snippet if none is found by the provided snippet_slug

Here is an example of how the request may look like:

{
  "neverbot_ussauth": "MY_API_KEY",
  "snippet_slug": "348gisdertwgiog...",
  "title": "My snippet title",
  "content": "The snippet content",
  "settings":{
    "password": "demotestoremote",
    "destruct": 10,
    "create_if_none": "yes"
  }
}

Delete Snippet

To update a snippet, you can use the same structure as for creating or updating it. There's only two differences: You only need to set the snippet_slug and the neverbot_api parameter to delete_snippet

https://neverbot.io/?neverbot_api=delete_snippet

You can keep the content type as for checking your authentication at JSON.

It is required to set the slug of the snippet to delete it. You can find the slug of the snippet in each URL. Down below you see what the slug looks like:

https://neverbot.io/snippet/1cpssdfesafdsdfshezjt6u5u46udf/

To actually delete the data, you have certain attributes available. Please find a list of all down below:

  1. snippet_slug (Required) - The slug of the snippet

Here is an example of how the request may look like:

{
  "neverbot_ussauth": "MY_API_KEY",
  "snippet_slug": "348gisdertwgiog..."
}

Get Snippets

You can also list all of your snippets. For security reasons, we only show the url, the id and the slug. To get started, simply set the following parameter for the neverbot API: get_snippets

https://neverbot.io/?neverbot_api=get_snippets

You can keep the content type as for checking your authentication at JSON.

To actually delete the data, simply set your API key within the request. Set the page parameter to switch between pages. By default, we output 20 snippets in descending order.

Here is an example of how the request may look like:

{
  "neverbot_ussauth": "MY_API_KEY",
  "page": 1
}