Cannot access API for custom entity in EspoCRM 9.x (self-hosted)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Versatics
    Junior Member
    • Oct 2025
    • 3

    #1

    Cannot access API for custom entity in EspoCRM 9.x (self-hosted)

    Hello,

    I have created a custom entity in my self-hosted EspoCRM 9.1.9 instance running on my VPS. I also created an API user and assigned it a role that should have access to the new entities. However, when I try to use the API to access the endpoint for the new entity, I get errors and cannot perform any actions.

    Here are some details:
    • API user: created and assigned a role with permissions for the new entities.
    • Custom entity: CClases (and others).
    • API calls return 403 Forbidden.
    • I have cleared cache and rebuilt after creating the entity.
    • EspoCRM version: 9.1.9, self-hosted on a VPS with docker compose.

    I would appreciate guidance on how to properly configure API access for custom entities.

    Thank you!
  • emillod
    Active Community Member
    • Apr 2017
    • 1492

    #2
    Hello,
    did you added new entity to the role which is assigned to this API user?

    Comment

    • Versatics
      Junior Member
      • Oct 2025
      • 3

      #3
      Originally posted by emillod
      Hello,
      did you added new entity to the role which is assigned to this API user?
      Yes i did, look the image below, i created the api user, and has the role Automations, and the role automations has access to everything, i can do api request to the normal entities but no to my custom ones.
      I'll show you images, the api user, the roles, the entities, and the http request in n8n (Contact endpoint works but not CClases).
      Attached Files

      Comment

      • Versatics
        Junior Member
        • Oct 2025
        • 3

        #4
        Originally posted by emillod
        Hello,
        did you added new entity to the role which is assigned to this API user?
        I fixed it! I am dumb and i didn't see the this part in the role permissions. ("Attached is an image for reference, in case anyone else faces the same problem.")
        Thank you for your reply emiliod!
        Attached Files

        Comment

        • emillod
          Active Community Member
          • Apr 2017
          • 1492

          #5
          No problem at all! Enjoy using EspoCRM

          Comment

          Working...