Spectra One

API REST

Estimated reading: 3 minutes

Welcome to Acreditta’s Public API for Digital Credentials! This guide will help you get started with integrating our API into your applications and systems.

Acreditta’s API allows you to seamlessly manage and issue digital credentials. Whether you are an educational institution, organization, or platform, our API empowers you to automate the credentialing process.

Getting Started

1. Obtain API Key

To get the API Key, you need to go to the side navigation bar, pull down the Integrations menu and click on API.
Then on the API screen click on Create APIKey, type a friendly name to identify your API Key and click Create. You will then see the value of your API Key, save it well as it will only be displayed once. When you are done with this process you will have a Developer User, with username API User and password API Key, you will use this two values to log into the API.

2. Login

You can log in and obtain access tokens as follows (Via Curl):

curl -X 'POST' \
  'https://public-api.acreditta.com/login' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "username": "YOUR_API_USER",
  "password": "YOUR_API_KEY_VALUE"
}'

Remember to replace “YOUR_API_USER” and “YOUR_API_KEY_VALUE” with the two values of your Developer User created in the last step. Following the last example you would have something like this to access the API:

-d '{
  "username": "api_token11760_270",
  "password": "dgT4H5*************************3fH5l"
}'

In the response you will have two values:

  • idToken: Use this as Bearer Token Authorization for all the API ussage from now on
  • refreshToken: Store it as you will need this to get a new idToken in case of expiration (using the /refresh-token endpoint)

3. Consume API

Now you can use the idToken as Bearer Token as you can see in the example in the header Authorization:

curl -X 'POST' \
  'https://public-api.acreditta.com/report/credential/status' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer ID_TOKEN' 

If you are doing the development in our sandbox environment demo.acreditta.app you should adjust the API URL base to https://publicapi-demo.acreditta.app/

Endpoint reference

In this link you can get the entire reference to all the Endpoints in swagger
https://public-api.acreditta.com/swagger/#/

Need Help?

If you encounter any issues or have questions, reach out to our support team at tech@acreditta.com. We’re here to assist you on your journey with Acreditta’s Digital Credentials API.
Start issuing and managing digital credentials effortlessly with Acreditta’s powerful API!

CONTENIDO