API Authentication

The NiceNIC API uses API secret to authenticate requests. You can view in manage vašega API Secret in the Nadzorna plošča.
We strongly recommend that you keep vašega API secret secure, do not share vašega secrets in public areas such as GitHub, client code, etc. You can always reset vašega API Secret by Nadzorna plošča.
Authentication to the API is done using the HTTP Authaliization header, wtukaj you need to specify vašega Uporabniško ime in API secret, separated by a colon.
Vse 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
}
Avtorske pravice © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Vse pravice pridržane. · U.S. Affiliate: NICENIC LLC