Api reference
POST Harnesses Pi Providers ProviderId Login
POST
/v1/harnesses/pi/providers/{providerId}/loginAuthorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
providerId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
method*string
Value in
- "api_key"
- "oauth"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/harnesses/pi/providers/string/login" \ -H "Content-Type: application/json" \ -d '{ "method": "api_key" }'{ "id": "string", "providerId": "string", "state": "running", "prompt": { "id": "string", "type": "text", "message": "string", "placeholder": "string", "options": [ { "id": "string", "label": "string", "description": "string" } ] }, "event": { "type": "info", "message": "string", "url": "string", "userCode": "string", "verificationUrl": "string" }, "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}