# Create api-token

## POST /api/token

> API tokens securely grant operators access to an API's services by authenticating and authorizing their requests,  \
> ensuring proper permission to access resources and perform actions.\
>

OpenAPI:

```json
{"openapi":"3.0.0","info":{"title":"Create API Token","version":"1.0.0"},"paths":{"/api/token":{"post":{"description":"API tokens securely grant operators access to an API's services by authenticating and authorizing their requests,  \nensuring proper permission to access resources and perform actions.\n","tags":["Revoke API Token"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["brand_id","password"],"properties":{"brand_id":{"type":"string","description":"Unique identifier for the brand, provided by the TBB platform."},"password":{"type":"string","description":"Password associated with the brand, provided by the TBB platform."}}}}}},"responses":{"200":{"description":"Token successfully created","content":{"application/json":{"schema":{"type":"object","required":["api-token"],"properties":{"api-token":{"type":"string"}}}}}},"401":{"description":"Unauthorized - Invalid credentials","content":{"application/json":{"schema":{"type":"object","required":["status","errors"],"properties":{"status":{"type":"string"},"errors":{"type":"array","items":{"type":"string"}}}}}}}}}}}}
```

