# How to create an edge service

import Tabs from '~/components/tabs/Tabs'


You can create an edge service by using:

- [Azion Console](/en/documentation/products/guides/how-to-access-azion-console/)
- [Azion API](https://api.azion.com/)

To create an edge service, proceed as follows:

<Tabs client:visible>
    <Fragment slot="tab.console">Console</Fragment>
    <Fragment slot="tab.api">API</Fragment>

<Fragment slot="panel.console">
1. Access [Azion Console](/en/documentation/products/guides/how-to-access-azion-console/) > **Edge Services**.
2. Click on the **+ Service** button.
3. Give a name for your service.
4. Define the variables, if necessary.
    - The variables must be in the format `Variable = Value`.
5. Click the **Save** button.
6. Go to the **Resources** tab and [provide resources](/en/documentation/products/guides/deploy/provision-files/) for your service.
</Fragment>

<Fragment slot="panel.api">
1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) and informing the name of the service being created:

```bash
curl --location 'https://api.azionapi.net/edge_services/' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
  "name": "string"
}'
``` 

Now, the service is available and able to be deployed onto the edge nodes.

:::tip
Check the [Azion API documentation](https://api.azion.com/) and the [OpenAPI specification](https://github.com/aziontech/azionapi-openapi/) to know more about all features available via API.
:::
</Fragment>

</Tabs>

Watch a video tutorial on how to create an edge service on Azion’s YouTube channel: