---
title: "Save Platform Credentials"
method: POST
path: "/api/v1/oauth/platforms/{platform}/credentials"
tags: ["oauth"]
---

# Save Platform Credentials

`POST /api/v1/oauth/platforms/{platform}/credentials`

## Request

- Base URL: `https://teraads.co` (the document declares no server; this is the origin it was published from)
- URL: `https://teraads.co/api/v1/oauth/platforms/{platform}/credentials`
- Auth: none declared

Save credentials for non-OAuth platforms.

Body:
  shiprocket:        { "email": "...", "password": "..." }
  payu:              { "merchant_key": "...", "merchant_salt": "...", "environment": "production" }
  google_analytics:  { "property_id": "..." }
  temple (TeraCart): { "api_key": "tk_live_...", "store_domain": "shop.example.com" (optional),
                       "webhook_secret": "whsec_..." (optional), "base_url": (optional, TeraCart's own host only) }
  stripe:            { "api_key": "rk_live_..." }  (a restricted key that can read charges; never a secret key)

## Path parameters

- `platform` string, required

## Query parameters

- `brand_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/teraads/apis/tera-ads-api.md) · [All operations](https://skmtc.dev/teraads/apis/tera-ads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teraads/apis/tera-ads-api/revisions/fb2526b5cf3c?raw)
