Authentification

All endpoints require authentification in the form of an access token which must be provided in the Authorization header as a Bearer token.

'Authorization': `Bearer YOUR_TOKEN`

Generate an access token

To get a valid Bearer Token, you have to call the Log in endpoint.

This endpoint is based on your account credentials usine your account email and password.

Login api call

POST https://app.gyfti.fr/api/1.1/wf/login/

This call allows you to login on the platform and get back in your success response your access Token to access all endpoints.

Request Body

Name
Type
Description

email*

String

user's email login address for his gyfti account

password*

String

user's password

{
    "status": "success",
    "response": {
        "token": "[YOUR_TOKEN]",
        "user_id": "[YOUR_USER_ID]",
        "expires": 
    }
}
{
    "email" : "[email protected]",
    "password" : "userspassword"
}

Verify credentials with token

You can use this call to verify your credentials and test you access Token.

Verify credentials with token

POST https://app.gyfti.fr/api/1.1/wf/is_log

Headers

Name
Type
Description

Authorization*

String

'Bearer [YOUR_TOKEN]'

{
    "status": "success",
    "response": {
        "user": {
            "Created Date": 1632500327533,
            "Modified Date": 1654592353339,
            "user_signed_up": true,
            "authentication": {
                "email": {
                    "email": "[email protected]",
                    "email_confirmed": true
                }
            },
            "FirstName": "User First Name",
            "LastName": "User Last Name",
            "Company": "Company ID",
            "FullName": " ",
            "Picture": "Profile picture",
            "Signature": "Your signature",
            "Favorite products": [
                "Product ID",
                "Product ID"
            ],
            "Confirm-email": true,
            "news-update": true,
            "Role": "Admin",
            "Status": "Actif",
            "onboarding": true,
            "Team": "1653036584766x296414308790698000",
            "_id": "1632500327487x574792221359071300"
        },
        "state": "The user is logged in"
    }
}

Last updated