Access authentication

You authenticate requests to the deployed experiment by including the deployed model’s token in the API request.

All API requests must be made over HTTPS. Requests using HTTP will fail as will requests without authentication.

Note
Keep the token secure! It is not password protected and can be used by whomever that have access to it. Do not share it the token if you don’t want it to become public.

Basic access authentication

Authentication to the Peltarion API is most often performed via HTTP basic access authentication. Basic authentication is a simple authentication scheme built into the HTTP protocol.

Use your token as the basic auth username value. You do not need to provide a password.

Example request

curl -X POST -F "Image=@Number_6.png" -u "908453eb-8aed-4947-8d01-6a4923b366eb:" https://a.peltarion.com/deployment/886e41a5-8801-4e76-ae0e-19159a5e9023/forward

Read more here on how to Deploy from the command line with CURL.

Bearer access authentication

Bearer tokens are the predominant type of access token used with OAuth 2.0.

If you want to use bearer authentication instead of basic you must type:

-H "Authorization: Bearer 90..."

instead of

-u "90..."

Example request

curl -X POST -F "Image=@Number_6.png" -H "Authorization: Bearer 908453eb-8aed-4947-8d01-6a4923b366eb:" https://a.peltarion.com/deployment/886e41a5-8801-4e76-ae0e-19159a5e9023/forward
Get started for free