Error 401 Unauthorized

GET https://www.avdb-invoices.com/api/employees

Request / Response

Request

GET Parameters

None

POST Parameters

None

Uploaded Files

None

Request Attributes

Key Value
_api_operation
ApiPlatform\Metadata\GetCollection {#698
  #shortName: "Employee"
  #class: "App\Entity\Employee"
  #paginationEnabled: false
  #paginationType: null
  #paginationItemsPerPage: null
  #paginationMaximumItemsPerPage: null
  #paginationPartial: null
  #paginationClientEnabled: null
  #paginationClientItemsPerPage: null
  #paginationClientPartial: null
  #paginationFetchJoinCollection: null
  #paginationUseOutputWalkers: null
  #paginationViaCursor: null
  #order: null
  #description: null
  #normalizationContext: [
    "groups" => [
      "employee:read"
    ]
  ]
  #denormalizationContext: [
    "groups" => [
      "employee:write"
    ]
  ]
  #collectDenormalizationErrors: null
  #security: null
  #securityMessage: null
  #securityPostDenormalize: null
  #securityPostDenormalizeMessage: null
  #securityPostValidation: null
  #securityPostValidationMessage: null
  #deprecationReason: null
  #filters: []
  #validationContext: null
  #input: null
  #output: null
  #mercure: null
  #messenger: null
  #elasticsearch: null
  #urlGenerationStrategy: null
  #read: null
  #deserialize: null
  #validate: null
  #write: null
  #serialize: null
  #fetchPartial: null
  #forceEager: null
  #priority: 4
  #name: "_api_/employees{._format}_get_collection"
  #provider: "ApiPlatform\Doctrine\Orm\State\CollectionProvider"
  #processor: "api_platform.doctrine.orm.state.persist_processor"
  #stateOptions: null
  #extraProperties: [
    "standard_put" => true
    "api_platform" => [
      "swagger" => [
        "api_keys" => [
          "JWT" => [
            "name" => "Authorization"
            "type" => "header"
          ]
        ]
      ]
    ]
  ]
  #method: "GET"
  #uriTemplate: "/employees{._format}"
  #types: null
  #formats: null
  #inputFormats: [
    "json" => [
      "application/json"
    ]
    "jsonld" => [
      "application/ld+json"
    ]
  ]
  #outputFormats: [
    "json" => [
      "application/json"
    ]
    "jsonld" => [
      "application/ld+json"
    ]
  ]
  #uriVariables: null
  #routePrefix: null
  #routeName: null
  #defaults: null
  #requirements: null
  #options: null
  #stateless: true
  #sunset: null
  #acceptPatch: null
  #status: null
  #host: null
  #schemes: null
  #condition: null
  #controller: null
  #cacheHeaders: [
    "vary" => [
      "Content-Type"
      "Authorization"
      "Origin"
    ]
  ]
  #hydraContext: null
  #openapiContext: null
  #openapi: null
  #exceptionToStatus: null
  #queryParameterValidationEnabled: null
  -itemUriTemplate: null
}
_api_operation_name
"_api_/employees{._format}_get_collection"
_api_resource_class
"App\Entity\Employee"
_controller
"api_platform.action.placeholder"
_firewall_context
"security.firewall.map.context.api"
_format
null
_links
Symfony\Component\WebLink\GenericLinkProvider {#948
  -links: [
    949 => Symfony\Component\WebLink\Link {#949
      -href: "https://www.avdb-invoices.com/api/docs.jsonld"
      -rel: [
        "http://www.w3.org/ns/hydra/core#apiDocumentation" => "http://www.w3.org/ns/hydra/core#apiDocumentation"
      ]
      -attributes: []
    }
  ]
}
_route
"_api_/employees{._format}_get_collection"
_route_params
[
  "_format" => null
  "_stateless" => true
  "_api_resource_class" => "App\Entity\Employee"
  "_api_operation_name" => "_api_/employees{._format}_get_collection"
]
_stateless
true
_stopwatch_token
"385480"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip, br"
cdn-loop
"cloudflare; loops=1"
cf-connecting-ip
"20.171.207.226"
cf-ipcountry
"US"
cf-ray
"9437c7d7ee502f6b-LHR"
cf-visitor
"{"scheme":"https"}"
content-length
""
content-type
""
from
"gptbot(at)openai.com"
host
"www.avdb-invoices.com"
user-agent
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
x-forwarded-for
"20.171.207.226"
x-forwarded-proto
"https"
x-openai-host-hash
"951690246"
x-php-ob-level
"1"

Request Content

Request content not available (it was retrieved as a resource).

Response

Response Headers

Header Value
cache-control
"no-cache, private"
content-type
"application/json"
date
"Wed, 21 May 2025 23:16:17 GMT"
link
"<https://www.avdb-invoices.com/api/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation""
www-authenticate
"Bearer"
x-debug-token
"ec9014"

Cookies

Request Cookies

No request cookies

Response Cookies

No response cookies

Session

Session Metadata

No session metadata

Session Attributes

No session attributes

Session Usage

0 Usages
Stateless check enabled

Session not used.

Flashes

Flashes

No flash messages were created.

Server Parameters

Server Parameters

Defined in .env

Key Value
APP_DEBUG
"1"
APP_ENV
"dev"
APP_SECRET
"ae8a2a36eab537c1fe4e189d68dd2729"
CORS_ALLOW_ORIGIN
"^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$"
DATABASE_URL
"mysql://invoice_user:[email protected]:3306/invoice_maker_v2?serverVersion=mariadb-10.4.24"
JWT_PASSPHRASE
"avdb@1582"
JWT_PUBLIC_KEY
"%kernel.project_dir%/config/jwt/public.pem"
JWT_SECRET_KEY
"%kernel.project_dir%/config/jwt/private.pem"

Defined as regular env variables

Key Value
CONTENT_LENGTH
""
CONTENT_TYPE
""
DOCUMENT_ROOT
"/var/www/avdb-invoices.com/public"
DOCUMENT_URI
"/index.php"
FCGI_ROLE
"RESPONDER"
GATEWAY_INTERFACE
"CGI/1.1"
HOME
"/var/www"
HTTPS
"on"
HTTP_ACCEPT
"*/*"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CDN_LOOP
"cloudflare; loops=1"
HTTP_CF_CONNECTING_IP
"20.171.207.226"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CF_RAY
"9437c7d7ee502f6b-LHR"
HTTP_CF_VISITOR
"{"scheme":"https"}"
HTTP_FROM
"gptbot(at)openai.com"
HTTP_HOST
"www.avdb-invoices.com"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"
HTTP_X_FORWARDED_FOR
"20.171.207.226"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_OPENAI_HOST_HASH
"951690246"
PATH_INFO
""
PHP_SELF
"/index.php"
QUERY_STRING
""
REDIRECT_STATUS
"200"
REMOTE_ADDR
"172.70.86.40"
REMOTE_PORT
"23322"
REQUEST_METHOD
"GET"
REQUEST_SCHEME
"https"
REQUEST_TIME
1747869377
REQUEST_TIME_FLOAT
1747869377.3396
REQUEST_URI
"/api/employees"
SCRIPT_FILENAME
"/var/www/avdb-invoices.com/public/index.php"
SCRIPT_NAME
"/index.php"
SERVER_ADDR
"206.189.121.133"
SERVER_NAME
"avdb-invoices.com"
SERVER_PORT
"443"
SERVER_PROTOCOL
"HTTP/1.1"
SERVER_SOFTWARE
"nginx/1.18.0"
SYMFONY_DOTENV_VARS
"APP_ENV,APP_DEBUG,APP_SECRET,DATABASE_URL,JWT_SECRET_KEY,JWT_PUBLIC_KEY,JWT_PASSPHRASE,CORS_ALLOW_ORIGIN"
USER
"www-data"