1. Authentication API
GY Docs
  • Documentation
  • Authentication API
    • Login
      POST
    • Sign Up
      POST
    • Google Authentication
      GET
  • Users API
    • List Users
      GET
    • List Users (Public)
      GET
    • Remove User
      DELETE
    • Get User Profile
      GET
    • Set Profile
      PUT
    • Get Username
      GET
    • Update Username
      PATCH
    • Get Email
      GET
    • Get Picture
      GET
    • Update Picture
      PATCH
    • Get Phone Number
      GET
    • Update Phone Number
      PATCH
    • Update Password
      PATCH
    • Get Metadata
      GET
    • Refresh API Key
      PATCH
GY Accounts
GY BooksHeralds of Chaos
GY Accounts
GY BooksHeralds of Chaos
  1. Authentication API

Login

POST
https://api.gycoding.com/accounts/auth/login
Checks the existance and the authentication of an user account basic Email/Username and Password authentication and returns their credentials.

Solicitud

Par谩metros del Body application/json

Ejemplo
{
    "email": "test@gycoding.com",
    "password": "testpasswd-0"
}

Ejemplos de solicitud

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gycoding.com/accounts/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "test@gycoding.com",
    "password": "testpasswd-0"
}'

Respuestas

馃煝200Success
application/json
Body

Ejemplo
{
    "access_token": "string",
    "id_token": "string",
    "token_type": "Bearer",
    "expires_in": 0
}
馃煚400Bad Request
馃煚401Unauthorized
馃煚405Method Not Allowed
馃敶500Internal Error
Siguiente
Sign Up
Built with