---
title: "Management REST APIs of the Platform"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220841325/Management%20REST%20APIs%20of%20the%20Platform"
format: markdown
---
> Macro (toc)

# Introduction

We can access these APIs from the Control Panel by clicking on APIs:

![image](media://b7b11176-506b-41bc-94b3-60657eacc6b5)

and then in Control Panel:

![image](media://0a6f46b1-814a-4020-8576-b3e6bad19e77)

or access the Swagger endpoint directly at the URL https: // <my_environment> /controlpanel/swagger-ui.html (for example [https://lab.onesaitplatform.com/controlpanel/swagger-ui.html](https://lab.onesaitplatform.com/controlpanel/swagger-ui.html)).

![image](media://183e8706-72e0-46bb-9d92-bdc9d9218ae0)

![image](media://ca6375e2-4b89-4e86-b0fb-0e44aaf5bd30)

In the platform's CloudLab environment, you can access these through this URL: [https://www.onesaitplatform.online](https://www.onesaitplatform.online)[/controlpanel/swagger-ui.html](https://development.onesaitplatform.com/controlpanel/swagger-ui.html)).

Let's see the different APIs offered one by one:

# API management service

In the drop-down menu, select **management **and then **APIs Management service:**

![image](media://e20ad466-7d9e-42cb-bebb-49b0513bb2a7)

This API offers methods to:

- Manage the user tokens (Get, postdelete) and
- Authorize and de-authorize an API's user.

In every method, you must include the OAuth token. You can find an explanation about it in: [How to invoke Platform Management APIs with OAuth2 Tokens?](https://onesaitplatform.atlassian.net/wiki/spaces/DOCT/pages/2220841718)

![image](media://346bc406-1f8e-4d53-819a-a54312096aed)

- **Get token:** allows you to get the user token. If there is more than one, it will return the last generated token.

![image](media://f5a252a2-a612-4dac-b02c-ffc832b1a749)

![image](media://34f214f0-7e6b-42b7-8963-1c49e4659aed)

- **Post token:** allows you to generate a new token for the user who requests it.

![image](media://85f6ff06-d246-4e13-96a5-f2cc9f8723c9)

![image](media://90d3dd4f-67fa-4b97-b344-30fdf472da13)

- **Delete token:** allows you to delete a token. You must first insert the token to identify which token you want to delete.

![image](media://c4a53268-1e09-4a92-9919-e9f667413ced)

![image](media://915d1dd7-c5ee-43da-be55-8eb49efa14e2)

If the token does not exist, it returns an error message.

![image](media://02628c2d-f8b3-4d8c-a4ec-fe00a854feab)

- **Authorize a user in an API:** from an API and a user, it allows you to authorize that user in that API.

![image](media://1f9311e5-e06c-4ad1-ab6a-8ee73c9621d7)

![image](media://2c01db31-ddc0-436b-8820-b5703eed9dee)

- **Delete an user's authorization:** the opposite method to the previous one, it de-authorizes an user in an API.

![image](media://48f0ec2a-3ec3-46a9-a46e-35296dc3dd19)

![image](media://8196dcce-3042-42fd-a307-1d9b52ae7e93)