Codevisor Docs
Api reference

POST Harnesses Opencode Accounts AccountId Providers ProviderId Login

POST/v1/harnesses/opencode/accounts/{accountId}/providers/{providerId}/login

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

accountId*string
providerId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

methodId*string
inputs?|null
apiKey?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/harnesses/opencode/accounts/string/providers/string/login" \  -H "Content-Type: application/json" \  -d '{    "methodId": "string"  }'
{  "id": "string",  "accountId": "string",  "providerId": "string",  "state": "running",  "authorization": {    "url": "string",    "method": "auto",    "instructions": "string"  },  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}