# Authorizing Astera’s Server APIs

Follow the steps below to learn how to authenticate Astera’s Server APIs.

1. Right-click on the server name in *Server Explorer > Server Connections > DEFAULT > HTTPS://(ServerName):9260*.

![](/files/IFcx6PlMdH28SFXbVFVr)

2. A wizard will appear with the Centerprise *Server API Path*. Click on the copy icon located at the bottom-left of the wizard to copy it.

![](/files/UaAeG3UKl7Fz2LfXsdA1)

A message will appear to confirm that the text has been copied successfully. Click *OK*.

![](/files/TYEuuBgaWXDlnWoYxDlk)

### Importing APIs in Astera

3. Click the *Import API* option in the API Browser and paste the Astera Server API path in the *URL* box. Then click *OK*.

{% hint style="info" %}
**Note:** Check the “*Ignore certificate errors over HTTP/SSL*” option to avoid any certification barriers.
{% endhint %}

![](/files/5KYTNV6G4qYCpNvsBPnF)

4. A wizard will appear, notifying you about the created shared action file. Click *Yes* to set it up.

You can also click on the .sact file in Project Explorer to configure the authentication settings.

![](/files/jlIWTj4sRs1ThTp9XF21)

The API Browser will be populated with Astera’s Server APIs, which you can use in your dataflow.

![](/files/d8dZ1iIQShFauZlPVEUx)

5. Right-click on the *Centerprise\_Server* object and select *Properties*.

![](/files/I8ps4bGemz4uH3kJgOqY)

This will open the *API Connection* screen. Select the *Security Type* as *Bearer Token*, as Astera Server APIs use *Bearer Token* authentication.

![](/files/3Ar9QIVXdhQkJHwYBeEz)

Provide the *User Name*, *Password*, and *Token URL* for Bearer Token. Then click *Request Token* to generate a token, and click *OK*. Press Ctrl+S to save changes in the shared action file.

{% hint style="info" %}
**Note:** You will have to regenerate the token if the validity period has expired.
{% endhint %}

![](/files/WFrzInYlAHr3CGNsT3lQ)

6. Now, drag-and-drop the */api/ServerInfo* from the API Browser to make a GET request.

![](/files/LWNWTHaC7LWXXhGzExrz)

7. Right-click on the object’s header and select *Preview Output*.

![](/files/raprYZJYFTdGB0xJJwJZ)

This is how your output would look like:

![](/files/XXesdf0w57ssWOA2i5R2)

This concludes working with Astera’s Server API.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/api-flow/api-consumption/authorize/authorizing-asteras-server-apis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
