Create a user session
curl --request POST \ --url https://api.grepvine.ai/v1/auth/login \ --header 'Content-Type: application/json' \ --data '{ "identifier": "example", "password": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”object
A username or an email address, matched case-insensitively.
Example generated
{ "identifier": "example", "password": "example"}Responses
Section titled “Responses”The session was created.
object
An account or organization name. Accounts and organizations share one namespace. A name keeps the case it was created with, and any spelling that differs only in case refers to it; no other account or organization can take such a spelling.
The account’s role on the Grepvine team, when it has one. Omitted for every other account.
Example
{ "staff_role": "root"}Headers
Section titled “Headers”The token for state changes that use cookie authentication.
The secure opaque session cookie, or an expired cookie when the session is cleared.
Authentication is required or failed.
object
Example generated
{ "code": "example", "reason": "example", "error": "example"}Headers
Section titled “Headers”The request identifier used for support and audit correlation.
default
Section titled “default”The request failed. A 429 carries Retry-After; the index is busy absorbing recent writes or is out of request capacity, and clients must slow down and retry after the interval. A 403 with code organization_suspended refuses every operation on a suspended organization’s members, indexes, documents and searches; reading the organization itself still answers and reports suspended, and the client should contact support.
object
Example generated
{ "code": "example", "reason": "example", "error": "example"}Headers
Section titled “Headers”The request identifier used for support and audit correlation.
Seconds to wait before retrying. Sent with every 429 so a client slows down instead of failing.