# Add website - NukeViet

To add a website running on the NukeViet platform to AIKTP you need to ensure your NukeViet website is using version 4. If you are using older versions, upgrade to version 4 before proceeding.

### Configuration on NukeViet

**Step 1: Upload the AIKTP API to your NukeViet host**

First download the file [NukeViet\_AIKTP\_1.0](https://aiktp.com/files/NukeViet_AIKTP.zip) to your computer

Extracting this file you will find a file named AIKTP.php

Upload the AIKTP.php file to the server (or hosting) running NukeViet. The upload directory is **includes/api**

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FFJ2nKP2eihqkD6QLfZht%252Fimage.png%3Falt%3Dmedia%26token%3D11cb12a4-91a3-4a5e-81a7-8cfe56fd3d56&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=db01a43d&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure>

After uploading, proceed to step 2.

**Step 2: Enable remote API**

Access NukeViet administration and choose Configuration -> General configuration

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252F3WF881XD2igARwWX3Ztp%252Fimage.png%3Falt%3Dmedia%26token%3D8c315544-1d8a-4145-a37a-41f2d5f62ba5&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=95dee031&#x26;sv=2" alt="" width="188"><figcaption></figcaption></figure>

Then scroll down and check the box: Enable remote API

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FRnAl7s0ctIRp8eQpLEEc%252Fimage.png%3Falt%3Dmedia%26token%3D059f99ee-02d1-4269-a36e-cfbb5b978cbb&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=21bb5af1&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure>

**Step 3: Grant permissions to the API**

After uploading the API file and allowing remote API calls, you need to grant permissions for the API to operate. From the menu **"Account" -> Administration**

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252F5xTiliZL1e1X89fOEbrs%252Fimage.png%3Falt%3Dmedia%26token%3D20bf33d9-97c6-426e-ae99-a2e85ee9cd33&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=e581ff5b&#x26;sv=2" alt="" width="375"><figcaption></figcaption></figure>

Select "Manage API Roles"

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FFI3AqgApfIQkjdQxz6bg%252Fimage.png%3Falt%3Dmedia%26token%3Da217caf0-48f1-4fc2-b126-c5de763ae1fe&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=e6fa292f&#x26;sv=2" alt="" width="188"><figcaption></figcaption></figure>

Then on the right screen create a new API Role

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FVbydicw6TyfuMfsAMr4z%252Fimage.png%3Falt%3Dmedia%26token%3D0d547218-0f08-423c-a5fa-50ab25054ef3&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=ff703781&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure>

Name: AIKTP

System: check webtools\_AIKTP&#x20;

Click save changes.

Then in the menu: API Access

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FSXRp2h7mir4VnqfixSur%252Fimage.png%3Falt%3Dmedia%26token%3D6b4d4a10-de57-4038-b51c-487d1df22b08&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=8ec31930&#x26;sv=2" alt="" width="188"><figcaption></figcaption></figure>

Click "Add API Access"

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FiAtg5Qjpc7yzphVoCML9%252Fimage.png%3Falt%3Dmedia%26token%3Dee3e66ae-64e6-4949-8c4d-4cd8a1d784ea&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=2304a471&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure>

Then fill in the information:

Access description: AIKTP - Post article

Select admin: choose an administrator

Select API Role: aiktp (created above)

Authentication method: password\_verify

Click "Save changes" to complete

After clicking "Save changes" you will see the Access Key and Secret Code — copy these two pieces of information to enter into AIKTP

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FPkXryRJGFIPGAm0dYIzH%252Fimage.png%3Falt%3Dmedia%26token%3Dddbebefe-1fae-4b42-8ac1-2d39176a068b&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=69d83bbe&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure>

### Configuration on AIKTP

In AIKTP, click the "Website" (or Websites) menu

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FkLVyw37KJebR81BrwN5o%252Fimage.png%3Falt%3Dmedia%26token%3Db592087f-f5e3-4620-9975-d78e39ee3bc2&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=667bcdc&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure>

Click the "Add Website" button

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FqqThrXB6riPCrTRcSVO5%252Fimage.png%3Falt%3Dmedia%26token%3Db625ad25-a198-4f9d-a5ea-c73bdeefe34c&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=4fbc1ad0&#x26;sv=2" alt="" width="375"><figcaption></figcaption></figure>

Select the NukeViet platform

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252FkVIohZK6q5H1f7BO5TA6%252Fimage.png%3Falt%3Dmedia%26token%3D96a7ac7c-0700-416b-b55b-fc016d2b9a46&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=f52a280d&#x26;sv=2" alt="" width="375"><figcaption></figcaption></figure>

Then click "Next" and fill in the information

<figure><img src="https://vn.docs.aiktp.com/~gitbook/image?url=https%3A%2F%2F1177439721-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FIrDzZoxFTl0oRehGw6bJ%252Fuploads%252F7Skvq0ymy0LgIIgX2iRn%252Fimage.png%3Falt%3Dmedia%26token%3Dc2b82096-d978-4116-aa2f-249802dda6bb&#x26;width=768&#x26;dpr=2&#x26;quality=100&#x26;sign=c7a2cc3d&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure>

Information includes:

Website URL: link to the domain running NukeViet. Note to include <https://domain&#x20>;

Access Key and Secret Code taken from above. Then click Verify to validate

If the information is correct, the verification proceeds quickly; click "Save" to finish adding the NukeViet website to the AIKTP system
