API Authentication

The NiceNIC API uses API secret to authenticate requests. You can view va manage sizning API Secret in the Boshqaruv paneli.
We strongly recommend that you keep sizning API secret secure, do not share sizning secrets in public areas such as GitHub, client code, etc. You can always reset sizning API Secret by Boshqaruv paneli.
Authentication to the API is done using the HTTP Authyokiization header, wbu yerni you need to specify sizning Foydalanuvchi nomi va API secret, separated by a colon.
Barchasi API requests must be made over HTTP. API requests without authentication will also fail.
https://api.nicenic.net/v2/
Host: api.nicenic.net
Authorization: username:api_secret
Content-Type: application/json
                                            
### Response format
```json
{
    "code": 0,
    "msg" : "success",
    "data" : {} // Specific data
}
Mualliflik huquqi © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Barcha huquqlar himoyalangan. · U.S. Affiliate: NICENIC LLC