REST-API
All DocumentationsSupport
  • Introduction
  • First Steps
    • Getting started
    • Authentication
  • Public Digital Cards
    • Get Public Card
    • Download Public Card
    • Get QR Code of Public Card
  • Digital Business Cards
    • Digital Business Cards
      • Get all Card(s)
      • Create a Card
      • Update a Card
        • Images
        • Contact Data
        • Delete a Contact
        • Social Media
      • Delete a Card
      • Get Space Addresses
    • Combine Physical Products
      • Connect Product to Card
      • Lock Product
  • Business Manager / Space
    • Digital Business Cards
      • Get all Card(s)
      • Create a Card
      • Export Digital Cards
      • Import Digital Cards
Powered by GitBook
On this page
  1. First Steps

Authentication

Authentication with the becard.me REST API is achieved through the OAuth 2.0 Bearer Token mechanism. This authentication method ensures the security of your API requests and provides controlled access to the platform's resources.

Include the token in the Authorization header of your API requests as follows:

Authorization: Bearer YOUR_ACCESS_TOKEN

Your Bearer Token allows you to securely access protected resources on the becard.me platform.


Follow the steps below to obtain and use your Bearer Token for authentication.

Variant 1: Request an Access Token over Credentials

To access the API, you need to obtain an Access Token by making a POST request to our token endpoint:

POST /v1/auth/login

Headers

Name
Type
Description

Accept*

application/json

Content-Type*

application/json

Request Body

Name
Type
Description

email*

string

Your E-MAIL

password*

string

Your PASSWORD

{
    "access_token": "eyJ0eXAiOiJKV1Q...",
    "session_id": "ZXlKcGRpSTZJbXc1VjJ...",
    "expires_at": "2024-04-19T22:53:03.000000Z"
}
{
    "message": "Access data do not match!"
}
    "message": "Undefined array key \"email\"",
    "exception": "ErrorException",

PreviousGetting startedNextGet Public Card

Last updated 1 year ago