---
title: Configuring the API JSON file
description: Configure the API JSON file in API Security Enforcer (ASE).
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_integrations:pingintelligence_pf_api_json
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_integrations/pingintelligence_pf_api_json.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  example: Example:
---

# Configuring the API JSON file

Configure the API JSON file in API Security Enforcer (ASE).

## About this task

The API JSON file parameters define the connectivity to the token endpoint.

To configure the API JSON file:

## Steps

1. Navigate to the `/pingidentity/ase/config/` directory.

2. Edit the `sideband_api.json.example` file, and set the value of the `url` parameter to `/as` and the `login_url` parameter to `/as/token.oauth2`.

   |   |                                                                                |
   | - | ------------------------------------------------------------------------------ |
   |   | `/as/token.oauth2` is the token endpoint of PingFederate authorization server. |

3. Rename the `sideband_api.json.example` file to `pf.json`.

4. After configuring the API JSON file, add it to ASE by executing the following command:

   ```
   /opt/pingidentity/ase/bin/cli.sh –u admin -p admin add_api pf.json
   ```

   ### Example:

   The following is a sample configuration of the API JSON file:

   ```json
   {
     "api_metadata": {
       "protocol": "http",
       "url": "/as",
       "hostname": "*",
       "cookie": "",
       "oauth2_access_token": false,
       "apikey_qs": "",
       "apikey_header": "",
       "login_url": "/as/token.oauth2",
       "enable_blocking": true,
       "api_memory_size": "128mb",
       "decoy_config": {
         "decoy_enabled": false,
         "response_code": 200,
         "response_def": "",
         "response_message": "",
         "decoy_subpaths": []
       }
     }
   }
   ```

   |   |                                                                                                                                                                                                                             |
   | - | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | For more information on configuring API JSON parameters, see [Defining an API using API JSON configuration file in sideband mode](../pingintelligence_reference_guide/pingintelligence_define_api_json_file_sideband.html). |
