Paymish Loading Docs Preparing guides, collections, and live API references...
Paymish Docs

Quickstart

Get Started

Before you start: create a test key in the Paymish Dashboard.

Base URL

https://api.paymish.com/api/user-service/external/v1

Authentication

Send your secret key as Authorization: Bearer ... on every request.

Install a Client

You can call the Paymish API directly over HTTPS, but these basic tools are enough for most integrations.

Python

pip install requests

Node.js

npm install axios

PHP

# The built-in cURL extension is enough

Make a Request

Call the profile endpoint to confirm that your test secret key is valid.

Python
import os
import requests

response = requests.get(
    "https://api.paymish.com/api/user-service/external/v1/profile",
    headers={
        "Authorization": f"Bearer {os.environ['PAYMISH_SECRET_KEY']}",
        "Content-Type": "application/json",
    },
)

print(response.json())
Node.js
const axios = require("axios");

const { data } = await axios.get(
  "https://api.paymish.com/api/user-service/external/v1/profile",
  {
    headers: {
      Authorization: `Bearer ${process.env.PAYMISH_SECRET_KEY}`,
      "Content-Type": "application/json",
    },
  }
);

console.log(data);
cURL
curl https://api.paymish.com/api/user-service/external/v1/profile \
  -H "Authorization: Bearer $PAYMISH_SECRET_KEY" \
  -H "Content-Type: application/json"
PHP
<?php
$secretKey = getenv("PAYMISH_SECRET_KEY");

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.paymish.com/api/user-service/external/v1/profile");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer $secretKey",
    "Content-Type: application/json",
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;

Read the Response

Most successful Paymish responses return a consistent JSON envelope with a status, message, and payload.

Example response
{
  "status": true,
  "message": "Profile retrieved successfully.",
  "data": {
    "id": "usr_abc123",
    "email": "dev@example.com",
    "firstName": "Kwame",
    "lastName": "Mensah",
    "createdAt": "2024-01-15T10:30:00Z"
  }
}
  • status tells you if the request succeeded.
  • message gives a readable summary of the outcome.
  • data contains the endpoint-specific payload.