Need some help getting started with the API - error 404 not found

First thanks to everyone involved in this fantastic CRM. One of the things that I’m really excited about is the ability to utilize the API. Ultimately I’d like to push new wordpress users into SuiteCRM as leads.

I’ve got some limited experience with APIs, and I think I may have some pretty basic questions, but here goes:

I’ve created my “Client Credentials Client” inside of SuiteCRM, but

when I try and request a token in postman I get 404 Not Found errors, and can’t get things to work.

Grant Type - Client Credentials
Access Token URL = https:// my install /Api/access_token
Client ID - client id from Suite CRM
Client Secret - the secret I set in SuiteCRM
Scope - I’m leaving this blank.
I did the steps on this docs
Also, I run this command $ sudo chown myUserName:staff p*.key

When I hit “request token” in postman, a 404 Not Found error appears.

SuiteCRM Version 7.11.21

Any thoughts on where I should go from here?

If you just need to push new contacts or leads into SuiteCRM, you’ll find it’s easier with the “web to person form” feature.

I need to use apis on suitecrm but I can’t

@Fatmaa

Hello, Welcome to the community.

Have you tried setting the permissions on the *.key files to www-dat:www-data?

Here are some notes that I use to setup a demo box recently

cd /Api/V8/OAuth2
openssl genrsa -out private.key 2048
openssl rsa -in private.key -pubout -out public.key
chmod 600 private.key public.key
chown www-data:www-data p*.key
php -r 'echo base64_encode(random_bytes(32)), PHP_EOL;'
Take the output of the above statement and set the oauth2_encryption_key config option in the config.ph file: 	'oauth2_encryption_key' => '',
Should now be ready for oath2 authentication

Hey @tkoehn,
I’ve come across your post, do you still require help?