# Get your company

> The company this key or sign-in works for, the role of the person behind it, and what the key may do.


`GET https://dev.siteswap.pro/api/v1/company`

The company this key or sign-in works for, the role of the person behind it, and what the key may do.

## Responses

- 200: OK
- 400: bad_request, key_in_url or invalid_json: the request could not be read
- 401: missing_key or invalid_key: no key, or a key that is not valid or was revoked
- 403: key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
- 404: not_found: nothing here that you may see
- 413: too_large: the body is over 256 KB
- 429: rate_limited or daily_quota: wait for Retry-After seconds

## Response fields

- `slug` (string): The company's address on SiteSwap, `/c/{slug}`
- `name` (string)
- `kind` (string): What kind of company, for example `contractor` or `supplier`
- `url` (string): Its public page
- `id` (string): The company's id
- `your_role` (string): The role of the person behind this key or sign-in
- `acting_as` ("key" | "person"): `key` for an API key, `person` for a sign-in token
- `scopes` (string[]): What this key may do
- `listings` (object)
- `listings.active` (integer)
- `listings.paused` (integer)

```json
{
  "data": {
    "id": "7",
    "slug": "acme-site-work",
    "name": "Acme Site Work",
    "kind": "contractor",
    "url": "https://siteswap.pro/c/acme-site-work",
    "your_role": "owner",
    "acting_as": "key",
    "scopes": [
      "listings:read",
      "listings:write"
    ],
    "listings": {
      "active": 12,
      "paused": 1
    }
  },
  "meta": {
    "request_id": "3f9a1c0b7d2e",
    "api_version": "v1"
  }
}
```

## Example

```bash
curl "https://dev.siteswap.pro/api/v1/company" \
  -H "Authorization: Bearer ssk_YOUR_KEY"
```