Authentication

To use the SDK, you must generate an access_token using the gospace Authentication API. Here’s an example request to obtain a token:bash

curl --
location 'https://api.gospace.app/authentication/v1/sdk/token' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data-raw '{
    "email": "[email protected]"
}'

Response:json

{
  "success": true,
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  },
  "identifier": "auth_successful"
}

Use the returned access_token in the SDK configuration. For API details, refer to the gospace Authentication API documentation.

Last updated

Was this helpful?