API Authentication

The NiceNIC API uses API secret to authenticate requests. You can view و manage شما API Secret in the کنسول مدیریت.
We strongly recommend that you keep شما API secret secure, do not share شما secrets in public areas such as GitHub, client code, etc. You can always reset شما API Secret by کنسول مدیریت.
Authentication to the API is done using the HTTP Authیاization header, wاینجا you need to specify شما نام کاربری و API secret, separated by a colon.
همه 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
}
حق نشر © 2006–2026 شرکت بین‌المللی NiceNIC محدود. تمام حقوق محفوظ است. · U.S. Affiliate: NICENIC LLC