VERITAS — PROSPERIIUM Operations
PROSPERIIUM
VERITAS
  
Energy
Today's Work
Syncing with ClickUp…
Revenue Snapshot
Active Clients
Pipeline Value
MTD Revenue
Market Pulse
Open Intelligence for live market data →
Revenue Pipeline
Active Clients
Pipeline Value
MTD Revenue
Conversion Rate
%
Intelligence
Financial Markets
Awaiting refresh…
Alternative Investments
Awaiting refresh…
Leadership & Voice
Awaiting refresh…
Content Ideas — LinkedIn & Instagram
Click a button above to generate content ideas
Capture
Brain Dump
Content Ideas Queue
Wins Log
Configuration
Airtable
Settings → API → Personal Access Token
✓ Saved
ClickUp
Settings → My Apps → API Token
Right-click list → Copy link → extract ID from URL
✓ Saved
Anthropic (Intelligence)
console.anthropic.com → API Keys
✓ Saved
Access Password
✓ Password updated
PHP Proxy Setup — Required for ClickUp & Anthropic

ClickUp and Anthropic block direct browser requests from external domains (CORS). Airtable works directly. To enable ClickUp and Anthropic, you need to install a small PHP proxy in WordPress. Two options:

Option A — WPCode (recommended): Install the free WPCode plugin → Code Snippets → Add New → paste the snippet below → set type to PHP Snippet → Activate.

Option B — functions.php: Appearance → Theme File Editor → functions.php → paste the snippet before the final ?> closing tag (or at the very end if there is none).

Note: the snippet is written for PHP 5.4+ and all WordPress versions. Do not add <?php — it is already in your file.

/**
 * VERITAS Dashboard - API Proxy
 * Compatible with PHP 5.4+ and all WordPress versions
 * In WPCode: paste as-is (leave "Run snippet" type as PHP)
 * In functions.php: paste as-is after the opening <?php line
 */

add_action( 'wp_ajax_veritas_proxy',        'veritas_proxy_handler' );
add_action( 'wp_ajax_nopriv_veritas_proxy', 'veritas_proxy_handler' );

function veritas_proxy_handler() {

    $raw     = isset( $_POST['payload'] ) ? stripslashes( $_POST['payload'] ) : '{}';
    $payload = json_decode( $raw, true );

    if ( empty( $payload ) || ! isset( $payload['url'] ) ) {
        wp_send_json_error( 'No URL provided' );
        return;
    }

    $url     = esc_url_raw( $payload['url'] );
    $method  = isset( $payload['method'] )  ? strtoupper( $payload['method'] )  : 'GET';
    $headers = isset( $payload['headers'] ) ? $payload['headers']                : array();
    $body    = isset( $payload['body'] )    ? $payload['body']                   : null;

    $args = array(
        'method'    => $method,
        'headers'   => $headers,
        'timeout'   => 30,
        'sslverify' => true,
    );

    if ( ! empty( $body ) ) {
        $args['body'] = $body;
    }

    $response = wp_remote_request( $url, $args );

    if ( is_wp_error( $response ) ) {
        wp_send_json( array( 'error' => array( 'message' => $response->get_error_message() ) ) );
        return;
    }

    $body_raw = wp_remote_retrieve_body( $response );
    $decoded  = json_decode( $body_raw, true );

    if ( $decoded !== null ) {
        echo json_encode( $decoded );
    } else {
        echo $body_raw;
    }

    wp_die();
}
Test Connections