REST/API

REST/API

NL: Informatie over de Autoflex 10 REST/API

EN: Information about the Autoflex 10 REST/API

API/REST

All API/REST documentation will be in English

Credentials

All Autoflex 10 REST/API endpoints need a token, the token can be requested with the following endpoint

/authenticate

For the authtenticate endpoint the following information is mandatory

Name

Purpose

Name

Purpose

api_key

Specific api_key per 3rd party, this provides the filter for the allowed end-points

An api_key can be requested by an email to api@autoflex.nl please supply the information why and what you want access

The api_key is in the UUID format

Please keep the api_key save and private to your organisation

organization_name

Leave this empty, this is a special purpose field

username

password

Specify: username + password per client (klant)

token

After providing the above information, the authenticate endpoint will return an unique token
The format of the token is an UUID
e.g.: 1112222-3344-5555-6666-888899999

 

For the rest of all our endpoints provide the token from the authenticate endpoint. This token is valid for 30 minutes make sure the token is still valid when making requests.

e.g.
HTTP header
token: 1112222-3344-5555-6666-888899999

CURL sample
curl -X GET "https://www.autoflex10.work/autoflex/servoy-service/velocity/webservice_v2/util/environment?username=<myusername>" -H "accept: */*" -H "token: 1112222-3344-5555-6666-888899999"

Testing

To test our API/REST endpoint use the following Swagger tool page:

https://openapi.autoflex10.work/

OpenAPI inteface

OpenAPI inteface

 

With the openApi (Swagger) interface you can directly test the Autoflex 10 API, this is also the go to page to open the documentatie and start a Discord discussion with one of our developers.

OpenAPI JSON

OpenAPI JSON

 

Using the first link on the openAPI page, with the filled in API-key will give you alle the openAPI in JSON format, this link can be used in your favorite API tool.

Some popular API tools are:

Sample of Bruno