---
title: "Returns access token, given a username and password"
slug: "returns-access-token-given-a-username-and-password"
updated: 2025-07-21T18:55:46Z
published: 2025-07-21T18:55:54Z
canonical: "docs.neeve.ai/returns-access-token-given-a-username-and-password"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neeve.ai/llms.txt
> Use this file to discover all available pages before exploring further.
# Returns access token, given a username and password
Post/api/v1/otalogin
Body parametersobject passwordstring
totpstring
usernamestring
Responses200
OK
Expand Allobject dataobject access_expires_ininteger
access_tokenstring
refresh_expires_ininteger
refresh_tokenstring
error_codeinteger | null
error_messagestring | null
error_statusboolean Examplefalse
400
Bad Request
Expand Allobject dataobject messagestring
error_codeinteger | null
error_messagestring | null
error_statusboolean
401
Unauthorized
object passwordstring
totpstring
usernamestring
422
Unprocessable Entity
object passwordstring
totpstring
usernamestring