Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.wcr.is/llms.txt

Use this file to discover all available pages before exploring further.

The WeCareRemote authentication API provides two endpoints for token management: one to obtain a JWT token and one to verify a token and retrieve the associated user data. Both endpoints are hosted at https://getme.global/api/v1/wordpress_auth and require no prior authentication.

Get JWT token

Request a new JWT token. No authentication is required to call this endpoint. Endpoint: GET https://getme.global/api/v1/wordpress_auth/jwt_token

Response (success)

{
  "success": true,
  "jwt_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
success
boolean
true if a token was successfully issued.
jwt_token
string
The JWT token string. Use this value as your Bearer token in subsequent API requests.

Response (error)

If the token could not be issued, the endpoint returns:
{
  "success": false
}

Example

curl https://getme.global/api/v1/wordpress_auth/jwt_token

Verify JWT token

Verify that a token is valid and retrieve the associated user data, including permissions and organization. Endpoint: POST https://getme.global/api/v1/wordpress_auth/verify_jwt_token

Request body

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
token
string
required
The JWT token to verify.

Response (success)

{
  "success": true,
  "user": {
    "id": 42,
    "username": "jane_doe",
    "name": "Jane Doe",
    "email": "jane@example.org",
    "permissions": ["org_admin"],
    "organization": {
      "name": "Sunflower Care"
    }
  }
}
success
boolean
true if the token is valid.
user
object
The user object associated with the token.

Response (failure)

If the token is invalid or expired, the endpoint returns:
{
  "success": false
}

Example

curl -X POST https://getme.global/api/v1/wordpress_auth/verify_jwt_token \
  -H "Content-Type: application/json" \
  -d '{"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}'

Error handling

If token verification fails, success is false and no user object is returned. This typically means the token has expired or was tampered with.
If verification fails, request a new token from the GET /jwt_token endpoint and retry your operation. Do not attempt to decode or modify the token manually.