404 for V8 API access_token


/Api/access_token returns 404.

SuiteCRM version: 8.1
PHP-FPM version: 7.4

Apache config:

<VirtualHost *:80>
  ServerName crm.example.com
  DocumentRoot /var/www/crm.example.com/public/

  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined

  <Directory />
    Options FollowSymLinks
    AllowOverride All
    Require all granted

  <Directory /var/www/crm.example.com/public/>
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    Require all granted

Include /etc/apache2/conf-available/php7.4-fpm.conf


This Apache is behind an Nginx proxy.

  • The rewrite module is enabled.
  • Tried to rebuild in admin page.
  • /lib/API/public/index.php returns the good response (source).
  • Generated RSA keys.

curl http://localhost/Api/access_token on localhost
https://crm.example.com/Api/index.php/access_token on remote
https://crm.example.com/Api/access_token on remote returns 404.

Any tips how can i use the API?


Hi @g0rbe
Please see this thread: request to api return 404 error - #3 by GSSOCIAL
I hope this will be helpful for you

But i never used the example PHP code, so thats not a problem.


curl -v -X POST -H 'Content-type: application/vnd.api+json' -H 'Accept: application/vnd.api+json'  https://crm.example.com/Api/access_token