# Pred Authentication API

**Canonical:** https://apis.io/apis/pred/pred-authentication-api/  
**Provider:** Pred — https://apis.io/providers/pred/  
**Base URL:** https://www.pred.app  
**Documentation:** https://pred-1.gitbook.io/pred-docs/api-reference/overview

Pred Authentication API is one of 7 APIs that [Pred](https://apis.io/providers/pred/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Authentication. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, and authentication docs.

Required headers, token refresh, and EIP-712 CreateProxy signature for login. For overview, getting started, and environment configuration, see **Overview**. ## Required headers - `Authorization: Bearer <token>` (for authenticated endpoints) - `X-API-Key: <api_key>` (required for login-with-signature only) - `X-Wallet-Address: <wallet_address>` (for order and portfolio endpoints) - `X-Proxy-Address: <proxy_wallet_address>` (for order and portfolio endpoints) **Token refresh:** Access tokens are automatically refreshed by the SDK whenever their remaining lifetime drops below the configured threshold. The default threshold is **5 minutes**, and can be overridden via the `RefreshThresholdSeconds` client option. ## EIP-712 login signature — CreateProxy Format: `0x<r><s><v>` (132 hex characters). Low-s normalized: `s <= curveOrderHalf`. **Domain (NO version field):** All values below are ENV-specific; use the row for your chosen environment (see Environment configuration in **Overview**). ``` EIP712Domain type: "EIP712Domain(string name,uint256 chainId,address verifyingContract)" name: "Pred Contract Proxy Factory" chainId: <Chain ID from environment table — Testnet 84532, Mainnet 8453> verifyingContract: <Login Contract from environment table> ``` **Message:** ``` CreateProxy type: "CreateProxy(address paymentToken,uint256 payment,address paymentReceiver)" paymentToken: 0x0000000000000000000000000000000000000000 payment: 0 paymentReceiver: 0x0000000000000000000000000000000000000000 ``` **Normalization constants:** - `curveOrder = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141` - `curveOrderHalf = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0`

## Machine-readable artifacts (6)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/pred/refs/heads/main/openapi/pred-authentication-api-openapi.yml
- **APIReference** — https://pred-1.gitbook.io/pred-docs/api-reference/overview
- **Authentication** — https://pred-1.gitbook.io/pred-docs/api-reference/authentication
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/pred/refs/heads/main/apis.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/pred/refs/heads/main/arazzo/_index.yml
- **Arazzo** — https://raw.githubusercontent.com/api-evangelist/pred/refs/heads/main/arazzo/pred-trading.yml

## Other Pred APIs (6)

- [Pred Market Discovery API](https://apis.io/apis/pred/pred-market-discovery-api/)
- [Pred Orders API](https://apis.io/apis/pred/pred-orders-api/)
- [Pred Overview API](https://apis.io/apis/pred/pred-overview-api/)
- [Pred Portfolio API](https://apis.io/apis/pred/pred-portfolio-api/)
- [Pred User API](https://apis.io/apis/pred/pred-user-api/)
- [Pred WebSocket API](https://apis.io/apis/pred/pred-websocket-api/)

## Tags

Authentication

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/pred/pred-authentication-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/pred/.
