Skip to main content
Python SDK
import requests

url = 'https://api.simplex.sh/pa_create_credential'
headers = {
    'Authorization': 'Bearer your_api_key_here',
    'Content-Type': 'application/json'
}
data = {
    'portal': 'covermymeds',
    'name': 'cmm_production',
    'username': 'your_username',
    'password': 'your_password'
}

response = requests.post(url, headers=headers, json=data)
result = response.json()
print(f"Credential stored: {result['succeeded']}")
{
  "succeeded": true,
  "credential_id": "<string>",
  "name": "<string>"
}
Store a portal credential for prior authorization submissions. The credential is encrypted server-side and used to authenticate with the specified PA portal (e.g. CoverMyMeds).

Authorizations

X-API-Key
string
header
required

Simplex API Key

Body

application/json
portal
enum<string>
required

The prior authorization portal this credential is for.

Available options:
covermymeds
name
string
required

A unique name for this credential (e.g. "cmm_production").

username
string

Portal username.

password
string

Portal password. Encrypted server-side before storage.

Response

Credential stored successfully

succeeded
boolean
required

Whether the credential was stored successfully.

credential_id
string

The unique ID of the stored credential.

name
string

The credential name.