---
title: "Login"
method: GET
path: "/api/v1/login"
tags: ["OSDB"]
---

# Login

`GET /api/v1/login`

Logs a user into the OSDB server, authenticating them by their WebID and returning an OSDB session ID in cookie osdb.sid

## Response `200`

Confirmation of a successful OSDB login.

- LoginResponse
  - `api` string, required — The path of the REST API method
  - `method` string, required — The name of the REST API method
  - `response` object, required
    - `user` string, required — The WebID of the user who has logged in.
  - `status` 'success', required

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/openlinksw/apis/osdb.md) · [All operations](https://skmtc.net/openlinksw/apis/osdb/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openlinksw/osdb/versions/24e38e614429/schema)
