# Service Account

Service Accounts are used for 2 use cases: anonymous access, and computer to computer communications.&#x20;

For anonymous access, when allowing unauthenticated traffic to your APIs, use a service account of type "**public**". For example, to enable anonymous access to the Product Catalog, allowing anyone to browse available products without requiring user registration.

For machine-to-machine communication (computer to computer), use a service account of type "**secret**". For example, when scheduling a cron job to perform automated tasks via the APIs.

In both cases, the service account credentials are not used directly but are exchanged for an access token, which grants access to the APIs. See [ServiceAccounts REST API](https://docs.objectsgrid.com/documentation/private-objects/service-account/serviceaccounts-rest-api) documentation for details.

## ServiceAccount Object Attributes

<table><thead><tr><th width="191">Name</th><th width="174">Type</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>String</td><td>The unique identifier for ServiceAccount (generated by Objects Grid platform)</td></tr><tr><td>secret</td><td>String</td><td>The ServiceAccount secret (generated by Objects Grid platform)</td></tr><tr><td>description</td><td>String</td><td>The ServiceAccount Description</td></tr><tr><td>type</td><td>String</td><td>The Type of ServiceAccount, "public" or "secret"</td></tr><tr><td>disabled</td><td>Boolean</td><td>Is this ServiceAccount disabled</td></tr><tr><td>tags</td><td>Array of <a href="#tag-anchor">Tag</a></td><td>Array of Tag</td></tr><tr><td>meta</td><td>Object <a href="../objects-grid-objects/meta-object">Meta</a></td><td>Object's meta data, read only</td></tr></tbody></table>

***

{% hint style="danger" %}
[Contact Support](https://docs.objectsgrid.com/support)
{% endhint %}

***
