Nirmos
Providers

Create Provider

Create Provider — Nirmos Control Plane REST API.

POST
/v1/providers

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/providers" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "baseUrl": "http://example.com",    "kind": "string",    "adapterType": "native_sdk"  }'
{  "data": {    "id": "string",    "name": "string",    "slug": "string",    "kind": "string",    "scope": "string",    "status": "string",    "isCustom": true,    "modelCount": 0,    "baseUrl": "string",    "adapterType": "string",    "authSchema": "string",    "capabilities": "string",    "metadata": "string",    "logoUrl": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "requestId": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}