Fix Zoho Creator Permission Denied Error in VB.NET API

How to fix the 'Permission Denied' error when accessing the Zoho Creator API using VB.NET?

Zoho Creator “Permission Denied to Add Record(s)”: VB.NET Fix Guide

Fix Zoho Creator "Permission Denied to Add Record(s)" in VB.NET (Step-by-Step Guide)

Meta title: Zoho Creator "Permission Denied to Add Record(s)": VB.NET Fix Guide
Meta description: Your Zoho Creator form works in the browser, but your VB.NET POST returns "Permission denied to add record(s)". Here is why it happens and how to fix it with OAuth 2.0 and API v2.1.
Primary keywords: Zoho Creator permission denied to add records, Zoho Creator API VB.NET, Zoho Creator OAuth 2.0
Suggested canonical note: If this article is republished elsewhere, point the canonical tag to the original Creator Scripts URL. See the attribution at the end.


Your Zoho Creator form accepts submissions in the browser. Then your desktop app posts the same data from VB.NET and gets back "Permission denied to add record(s)".

Nothing is wrong with your data. This is an authorization error. Zoho understood your request, but the identity behind it is not allowed to add records to that form. According to Zoho's API v2.1 status codes, this message corresponds to an HTTP 403.

The question has a long history. It appears in developer forums such as Submit Form POST using VB .NET, where developers post to Creator with WebRequest and an authtoken. This guide updates that scenario for how Zoho Creator works today.

What You'll Learn

  • Why a form works in the browser but fails through the API
  • How to find the cause in about 15 minutes by comparing requests
  • How to fix Creator permissions for the API user
  • How to migrate from legacy authtokens to OAuth 2.0 and Creator API v2.1, with working VB.NET code
  • When to use a Deluge function or workflow tool as an alternative

Why the Browser Works but VB.NET Fails

When you submit the form in a browser, one of two things is happening:

  1. The form is published as a public form (a permalink or embed). Anyone can submit it, so no API identity is checked.
  2. You are logged in to Creator. Your session cookie identifies you as a user who can add records.

A programmatic call is different. It is authenticated as one specific Zoho user, the one who authorized the token. Creator then checks that user's permissions on the form.

The most likely causes, in order:

# Likely cause How it shows up
A The browser form is public, but the API user has no Add permission on the form Works in the browser, 403 from the API
B The app belongs to another account, and the request doesn't identify the owner correctly The API looks in the wrong account
C Link names are wrong (display names used instead of app, form or field link names) Permission or not-found style errors
D The token is legacy (authtoken), expired, revoked, or from another user or data center The token "works" in one place but not another
E The request is malformed (wrong content type, unencoded values) Usually a different error, but it can surface this way

The important distinction: an OAuth scope such as ZohoCreator.form.CREATE and a Creator permission are two separate checks. The scope lets the token ask to create records. The Creator user behind the token must still be allowed to add records to that form. A correct scope does not override the user's role or profile.

Visual suggestion: a simple two-lane diagram. Lane 1 is "Public form → no identity check → record saved". Lane 2 is "API call → token user → permission check → 403 or saved".


Step 1: Capture the Working Request (About 15 Minutes)

Stop guessing and compare the request that works with the one that fails.

  1. Open the working form in Chrome or Edge, press F12, and open the Network tab. Enable Preserve log.
  2. Submit the form and click the POST request. Note the URL, the request headers (Content-Type, Cookie, Authorization, Origin) and the form data.
  3. Capture your VB.NET request with a tool such as Fiddler and compare the two.

What the comparison tells you:

  • The browser posts to a public form URL, not an API URL. This confirms cause A. The two paths use different permission models.
  • The browser sends cookies and no token. The form works because you are logged in, not because of the token.
  • The browser's field names are the link names your API payload should use.

Step 2: Fix Permissions on the Creator Side

This fixes most cases of cause A.

Zoho's documentation says only two groups of people can add records: the application owner and shared users who have been given permission to add records in that form. Check the following:

  1. Identify the token's user. Find the Zoho account that authorized the token. Use a dedicated integration user rather than a personal account if you can.
  2. Test manually. Log in as that user and add a record through the Creator UI. If it fails there, the API will fail too.
  3. Check the user's profile and role. Open the app's sharing and permissions settings (menu labels differ slightly between Creator UI versions). Make sure the profile assigned to that user has Add permission on this specific form.
  4. Use the right owner and link names. The API path needs the account owner name, the app link name and the form link name. Take these from the app's settings. Don't use display names.

For a deeper look at role-based access, see our guide on dynamically hiding fields in Zoho Creator based on user roles. It shows how roles shape what each user can see and do.

Limitation: you need admin rights on the app, or someone who has them.


Step 3: Stop Using Authtokens

Many older VB.NET samples, including the one in the source discussion, authenticate with an authtoken parameter. Zoho has been retiring that mechanism.

Zoho's migration plan for Creator had three phases:

  1. Introduce OAuth-based APIs and Deluge tasks.
  2. Disable creation of new authtokens.
  3. Deprecate all authtoken-based APIs and Deluge tasks, with a published deadline of 3 February 2021.

If your code still sends an authtoken, treat it as a likely failure point and migrate. Even where an old token appears to work, you don't want an integration that depends on a retired mechanism. Zoho's current documentation recommends OAuth 2.0 with the v2/v2.1 REST endpoints.


Step 4: Migrate to Creator API v2.1 with OAuth 2.0

This is the long-term fix. It also makes permissions explicit through scopes.

One-time setup

  1. Open the Zoho API Console for your data center (for example api-console.zoho.com).
  2. Create a Self Client. It suits desktop apps and scripts acting on your own account. Use a Server-based client if you need other users to authorize your app.
  3. Generate a grant code with the scope ZohoCreator.form.CREATE. Add other scopes, such as report read access, only if you need them.
  4. Exchange the grant code for an access token and a refresh token. The grant code is short-lived, so do this right away.
  5. Store the refresh token securely. Use it to request new access tokens. Access tokens expire after one hour.

The add-record request

POST https://www.zohoapis.com/creator/v2.1/data/{account_owner_name}/{app_link_name}/form/{form_link_name}
Authorization: Zoho-oauthtoken {access_token}
Content-Type: application/json

{ "data": { "Name": "John Smith", "Email": "john@example.com" } }

Replace .com with your data center's domain (for example .eu, .in or .com.au). Use the matching accounts domain for token requests, such as accounts.zoho.eu. A mismatch between your data center and the domains you call is a common source of confusing authentication errors.

Working VB.NET example

This uses HttpClient, which is easier to manage than WebRequest. It targets .NET 5+ with System.Text.Json. On .NET Framework, add the System.Text.Json NuGet package or use Newtonsoft.Json, and set TLS 1.2 explicitly: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12.

Imports System.Collections.Generic
Imports System.Net.Http
Imports System.Text
Imports System.Text.Json

Public Module ZohoCreatorClient

Private ReadOnly Http As New HttpClient()

' Use the accounts and API domains for YOUR data center
Private Const AccountsHost As String = "https://accounts.zoho.com"
Private Const ApiHost As String = "https://www.zohoapis.com"

' Exchange the stored refresh token for a fresh access token
Public Async Function GetAccessTokenAsync(clientId As String,
clientSecret As String,
refreshToken As String) As Task(Of String)
Dim form As New Dictionary(Of String, String) From {
{"refresh_token", refreshToken},
{"client_id", clientId},
{"client_secret", clientSecret},
{"grant_type", "refresh_token"}
}

Using content As New FormUrlEncodedContent(form)
Dim resp = Await Http.PostAsync(AccountsHost & "/oauth/v2/token", content)
Dim body = Await resp.Content.ReadAsStringAsync()
Using doc = JsonDocument.Parse(body)
Return doc.RootElement.GetProperty("access_token").GetString()
End Using
End Using
End Function

' Add a record to a Creator form
Public Async Function AddRecordAsync(accessToken As String,
owner As String,
appLinkName As String,
formLinkName As String) As Task(Of String)
Dim url = $"{ApiHost}/creator/v2.1/data/{owner}/{appLinkName}/form/{formLinkName}"

' Keys must be FIELD LINK NAMES, not display names
Dim payload As New Dictionary(Of String, Object) From {
{"data", New Dictionary(Of String, Object) From {
{"Name", "John Smith"},
{"Email", "john@example.com"}
}}
}
Dim json = JsonSerializer.Serialize(payload)

Using request As New HttpRequestMessage(HttpMethod.Post, url)
request.Headers.TryAddWithoutValidation("Authorization", "Zoho-oauthtoken " & accessToken)
request.Content = New StringContent(json, Encoding.UTF8, "application/json")

Dim resp = Await Http.SendAsync(request)
Dim body = Await resp.Content.ReadAsStringAsync()

If resp.StatusCode = System.Net.HttpStatusCode.Forbidden Then
' Token is valid, but this Creator user can't add records to this form
Return "403 - check the token user's Add permission on the form. " & body
End If

Return body ' A successful add returns code 3000
End Using
End Function

End Module

Why this code avoids common pitfalls:

  • FormUrlEncodedContent and JsonSerializer handle encoding and escaping, so special characters such as +, &, @ and quotes won't break the request.
  • Access tokens are requested fresh from the refresh token. Cache the token for up to an hour instead of requesting one per call.
  • A 403 is handled separately, so a permission problem isn't mistaken for a coding bug.

Official references:

Still seeing a 403 after migrating? Go back to Step 2. The OAuth user needs Add permission on the form, whatever the scope says. If the error is more elaborate, our Deluge troubleshooting walkthrough for Zoho Creator shows a methodical approach to isolating Creator-side issues.

If you don't have a Creator account to test with yet, you can start with Zoho Creator here and create a sandbox app. A dedicated test app lets you try permissions and API calls safely.


Even with permissions right, these details can cause trouble:

  • Use link names. Field, form and app link names differ from the labels users see. The browser capture from Step 1 shows the exact field names.
  • Date and special fields. Date formats, lookups and multi-select fields each have specific value formats. Check the Add Records documentation for each field type.
  • Match the data center. Use the correct domains for your region on both the accounts and API sides.
  • Read the full response body. Creator returns a code and message. Log them, because they usually point straight at the problem.

If your form uses multi-step logic, see creating multi-step forms and consolidated reports in Zoho Creator. It explains how form design affects the data you submit.


Alternatives When You Can't Change Permissions

Post to the public form endpoint (use with caution)

If the form is intentionally public, you could replicate the browser's POST. This is fragile. The contract is undocumented, so Zoho can change it at any time. It may include hidden fields or CAPTCHA, and it bypasses API authentication. Use it only for forms you truly meant to be public.

Use an intermediary

Put a layer between your desktop app and Creator. The app calls the layer, and the layer inserts the record using the owner's permissions.

  • Deluge custom function: expose a function that accepts your app's call and adds the record server-side.
  • Workflow automation: use a webhook with Zoho Flow, or a tool such as Make.com, to receive data and write to Creator.

This moves the permission model into Zoho's environment. You then need to secure the endpoint (for example with an API key) and maintain the extra layer. For passing results back from a custom function, see our guide on Zoho Flow custom function outputs.


Troubleshooting Checklist

  1. Capture and compare the browser request and your VB.NET request.
  2. Confirm the token's user can add a record manually in the Creator UI.
  3. Grant Add permission on the specific form to that user's profile.
  4. Verify the owner name and the app, form and field link names.
  5. Move off authtokens to OAuth 2.0 and API v2.1 with ZohoCreator.form.CREATE.
  6. Match your data center on both the accounts and API domains.
  7. Log the full response (status code, code and message) for any remaining failure.

Key Takeaways

  • "Permission denied to add record(s)" is a 403 authorization error, not a data error.
  • A browser form often works because it's public or session-based. An API call runs as the token's user.
  • OAuth scope and Creator permissions are separate. You need both.
  • Authtokens are deprecated. Use OAuth 2.0 and the v2.1 REST API instead.
  • Use link names, not display names, and match your data center domains.

Need Help with Your Creator Integration?

Permission models, OAuth setup and legacy-to-v2.1 migrations are easy to get wrong, and the errors don't always say why. The Creator Scripts team builds and repairs Zoho Creator integrations every day.

Learn more about what we do on our Zoho Creator services page.


Source attribution: This article expands on the scenario discussed in Submit Form POST using VB .NET and updates it for current Zoho Creator API behavior. Endpoints, scopes and data-center domains were checked against Zoho's official Creator v2.1 documentation. Confirm the details against those docs for your own account and region before going live.