Automation

Applications and Access Tokens

If you want to use the S1SEVEN API, you need to create an application on the S1SEVEN platformopen in new window to receive access tokens.

Create an Application

  1. Go to Automate › Applicationsopen in new window
  2. Click Create Application — a modal will open
  3. Provide a name, select mode test or live and scopes for your application.
  4. Click Create Application

TIP

The Mode determines the target Blockchain network on which notarizations are stored.

You have successfully created an application! You are now presented with the application’s details. You can find the Application ID, the Client ID and the Client Secret in the General section. These values are needed to generate an access token using the API.

Create Application

Generate an Access Token

Access tokens are used to authenticate your service with the S1SEVEN API. You can generate an access token using the API or using the S1SEVEN platform. Keep in mind that access tokens have a limited lifetime.

  1. Go to Automate › Applicationsopen in new window
  2. Click on the name of your application to enter the application’s details.
  3. Navigate to the M2M Access Token tab
  4. Click Generate Access Token

You have successfully generated an access token! You are now presented with the access token. Make sure to keep it safe.

Access Token

Webhooks

Webhooks allow external services to be notified when certain events happen. We’ll send a POST request to each of the URLs you provide. To set up a webhook, open the Developers section and click on Webhooks.

Click on Add webhook, add a Payload URL, Secret, choose a Mode, and choose the events that will trigger the webhook.

TIP

This secret is used to sign the payload and allows you to verify that S1SEVEN is the one sending the request.

For further details, please take a look at our developer documentationopen in new window

Mailhooks

Mailhooks trigger emails on certain events. We send you an email with data on the event. To set up a mailhook, open the Developers section and click on Mailhooks. Add a Recipient email address, choose the Mode, and choose the events that will trigger the mailhook.

Then click Save, and you will see your mailhook has been added to the list of mailhooks.

Mailhook use cases

Mailhooks can currently be configured to send you data via email automatically when one of the following events is triggered:

  • when a company is updated
  • when an access token is created or updated
  • when a wallet is created, updated or deleted
  • when an identity is created or notarized
  • when a transaction is signed or sent
  • when a certificate is notarized or received
  • when a hook is created, updated or deleted
  • when a mailhook is created, updated or deleted

For example, a mailhook triggered by the identities:create_one event will send you an email.

Using a Microsoft Exchange Server?

Don't forget to add our email sending address to the list of accepted senders. You can find the sender address in the Mailhooks User Interface (UI).

© 2024 S1SEVEN GmbH