# Testing REST API

You can test your custom chaincode REST APIs right from within the Spydra console. You can also test the APIs from any REST API client like Postman.

{% hint style="info" %}
The pre-requisite is that your custom app should already be deployed on a Network.
{% endhint %}

### 1. Create an API key

* Navigate to the Network
* Go to API key page from the Side menu
* Generate an API key for the Organization
* Copy the API key

<figure><img src="https://640808362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5jDaQI2dLzXe5VgQBNFE%2Fuploads%2Fvdwq8A768FQcbzUW3iB8%2Fimage.png?alt=media&#x26;token=c8e4a890-d92c-4619-ba8f-2ff4f1b40db2" alt=""><figcaption></figcaption></figure>

### 2. REST API page in Deployed App

* Navigate to Network
* Click on Deployed Apps and select the Asset Tokenization API
* In the REST API page, select the Organization, if you have multiple Organizations

<figure><img src="https://640808362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5jDaQI2dLzXe5VgQBNFE%2Fuploads%2FeT1L3NNXOt6QbkAwQ1zo%2FCustom%20cc_RESTAPI.png?alt=media&#x26;token=2f379a6e-703b-4ec6-a380-e660115a3719" alt=""><figcaption></figcaption></figure>

* Click on Authorize, Enter the copied API key, and Authorize
* Once it is Authorized, you can click on Try it now for a specific API
* Enter your Request in the Request Editor and execute.

<figure><img src="https://640808362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5jDaQI2dLzXe5VgQBNFE%2Fuploads%2FAr7tzW4wmQS5aNHhtRLe%2FCustom%20cc_Request.png?alt=media&#x26;token=a0576b54-1496-462a-9b0c-caea7a0bd7d2" alt=""><figcaption></figcaption></figure>

* You will get a response. That's how you can use Swagger on Spydra Interface

<figure><img src="https://640808362-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5jDaQI2dLzXe5VgQBNFE%2Fuploads%2FJOXy7JVHDPSelkVH0Yd9%2FCustom%20cc_Response.png?alt=media&#x26;token=9514d6e7-f2a7-457e-ad30-a28572fcc1c0" alt=""><figcaption></figcaption></figure>
