# Segment API

### Introduction

The Segment API endpoints provide access to our customer/visitor segment information. These endpoints enable you to retrieve a list of segments, create new segments, upload customer/visitor info to existing segments, and export/download segment data.

### Base URL

All requests to the Profile API endpoints should be made to the following base URL:

```http
http://api.ants.tech/access/api/segment
```

### Authentication

To access these endpoints, you will need to authenticate your requests using OAuth 2.0 and ensure that the access token is authenticated with the scope `segment`. Please refer to our [Authentication Guide](#base-url) for details on how to obtain an access token.

### Error Handling

Our API follows standard HTTP status codes for indicating the success or failure of a request. In case of an error, additional information will be provided in the response body.
