# Authorize

## POST /api/oauth/token

> Obtain access token

```json
{"openapi":"3.0.0","info":{"title":"PremsWishlist","version":"1.0.0"},"servers":[{"url":"{{BASE_URL}}"}],"paths":{"/api/oauth/token":{"post":{"summary":"Obtain access token","responses":{"200":{"description":"Successful","headers":{"Access-Control-Allow-Headers":{"deprecated":false,"schema":{}},"Access-Control-Allow-Methods":{"deprecated":false,"schema":{}},"Access-Control-Allow-Origin":{"deprecated":false,"schema":{}},"Access-Control-Expose-Headers":{"deprecated":false,"schema":{}},"Cache-Control":{"deprecated":false,"schema":{}},"Content-Security-Policy":{"deprecated":false,"schema":{}},"Date":{"deprecated":false,"schema":{}},"Pragma":{"deprecated":false,"schema":{}},"Referrer-Policy":{"deprecated":false,"schema":{}},"Server":{"deprecated":false,"schema":{}},"Server-Timing":{"deprecated":false,"schema":{}},"Strict-Transport-Security":{"deprecated":false,"schema":{}},"X-Content-Type-Options":{"deprecated":false,"schema":{}},"X-Debug-Token":{"deprecated":false,"schema":{}},"X-Debug-Token-Link":{"deprecated":false,"schema":{}},"X-Frame-Options":{"deprecated":false,"schema":{}},"X-Robots-Tag":{"deprecated":false,"schema":{}},"X-Symfony-Cache":{"deprecated":false,"schema":{}},"Transfer-Encoding":{"deprecated":false,"schema":{}}},"content":{"application/json":{"schema":{"type":"object","properties":{"token_type":{"type":"string"},"expires_in":{"type":"integer"},"access_token":{"type":"string"}}}}}},"404":{"description":"Not found","headers":{"Access-Control-Allow-Headers":{"schema":{"type":"string"}},"Access-Control-Allow-Methods":{"schema":{"type":"string"}},"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Access-Control-Expose-Headers":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string"}},"Date":{"schema":{"type":"string"}},"Server":{"schema":{"type":"string"}},"Server-Timing":{"schema":{"type":"string"}},"X-Debug-Token":{"schema":{"type":"string"}},"X-Debug-Token-Link":{"schema":{"type":"string"}},"X-Robots-Tag":{"schema":{"type":"string"}},"X-Symfony-Cache":{"schema":{"type":"string"}},"Transfer-Encoding":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","format":"utc-millisec"},"status":{"type":"string","format":"color"},"title":{"type":"string"},"detail":{"type":"string","format":"style"},"meta":{"type":"object","properties":{"trace":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"line":{"type":"integer"},"function":{"type":"string"},"class":{"type":"string"},"type":{"type":"string"},"args":{"type":"array","items":{"type":"object"}}}}},"file":{"type":"string"},"line":{"type":"integer"},"previous":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","format":"utc-millisec"},"status":{"type":"string","format":"color"},"title":{"type":"string"},"detail":{"type":"string"},"meta":{"type":"object","properties":{"trace":{"type":"array","items":{"type":"object","properties":{"file":{"type":"string"},"line":{"type":"integer"},"function":{"type":"string"},"class":{"type":"string"},"type":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}}}},"file":{"type":"string"},"line":{"type":"integer"}}}}}}}}}}}}}}}}},"tags":["Authorize"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"grant_type":{"type":"string"},"client_id":{"type":"string"},"client_secret":{"type":"string"}}}}}}}}}}
```
