---
title: "Connect a dev/null account using an SSH private key"
method: POST
path: "/accounts/devnull/login"
tags: ["Accounts"]
---

# Connect a dev/null account using an SSH private key

`POST /accounts/devnull/login`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/accounts/devnull/login`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Request body

- DevNullLoginInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `intent` 'production' | 'certification_test': Typed execution intent; certification_test requires an unscoped instance administrator
  - `private_key` string, required: OpenSSH private key whose public half is on your GitHub account (stored encrypted, used only to sign commits)
  - `username` string, required: dev/null username (your GitHub username)
  - `workspace_id` string, required: Workspace ID

## Response `200`

OK

- AccountConnectionResponse
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `account_id` string, required: OpenPost destination account ID
  - `account_ids` string[], nullable, required: All connected OpenPost account IDs
  - `open_fresh_composer` boolean, required: Whether this is the Workspace's first connected destination
  - `workspace_id` string, required: Workspace receiving the connected destination

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: Internal Server Error
- `502`: Bad Gateway

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
