- How it works
- Discovery endpoint
- Choose your implementation path
- 2-legged OAuth — existing client
- Check your token scope
- 1. One-time discovery
- 2. Add the employer parameter
- 2-legged OAuth — new client
- 1. Create your app
- 2. One-time discovery
- 3. Bind your tokens to that advertiser
- 3-legged OAuth — existing client
- Check your token scope
- 1. Discovery using your access token
- 2. Refresh with the employer parameter
- Re-consent to add the discovery scope
- Switch between advertisers
- See also
- Guides
- References
- REST API references
Employer access tokens
Name the advertiser for each Sponsored Jobs API request.
Unless you have a written agreement with Indeed regarding your use of Indeed's APIs, by using this API or its documentation, you agree to apply the Indeed API Terms (opens in a new window) and the Additional API Terms and Guidelines to your use of Indeed's APIs.
Going forward, your API integration must tell Indeed which advertiser each request is for. Request an employer-scoped access token for that advertiser. Include an employerId when you request the token. Use that token only for that advertiser.
If you do not know your advertiser IDs, list the advertisers you can access. Call either:
Then request an employer-scoped token for the advertiser you want. To switch advertisers, request a new token with a different employerId.
The Sponsored Jobs API rejects tokens that are not employer-scoped. The discovery endpoint still accepts a token that is not employer-scoped.
How it works
#- Request an employer access token. Include
employer=<employerId>in yourPOST /oauth/v2/tokensrequest. Indeed embeds the employer ID in the token'semployerclaim. - Use that token for all API calls. Send it as
Authorization: Bearer <token>. Indeed reads theemployerclaim and acts on that advertiser.
Every Sponsored Jobs API endpoint except discovery rejects a token that has no employer claim, returning HTTP 403 NOT_EMPLOYER_ACCESS_TOKEN.
Discovery endpoint
#Call the discovery endpoint only when you don't know which advertiser IDs your account can access. Skip it if your tokens already pass employer=<id>, or if you already know the advertiser ID.
To call the discovery endpoint:
-
Omit
employer=<id>from yourPOST /oauth/v2/tokensrequest. -
Call list employer accounts with that token. Call either:
-
Select an advertiser and pass its
employerIdasemployer=<id>on future token requests.
The response lists each advertiser with an isRoot flag. Bind your next token to:
-
The advertiser whose details you want through either:
-
The advertiser where
isRootistruethrough either:
Choose your implementation path
#Find your situation, then follow the matching path:
| Your situation | Go to |
|---|---|
2-legged OAuth existing client Already calling APIs in production, but tokens lack the | 2-legged OAuth — existing client |
2-legged OAuth new client Building a new integration, and you don't know the employer ID yet. | 2-legged OAuth — new client |
3-legged OAuth existing client Already calling APIs in production, but tokens lack the | 3-legged OAuth — existing client |
3-legged OAuth new client Building a new user-delegated integration. | Get an employer access token |
2-legged OAuth — existing client
#Use this path if your 2-legged OAuth app already calls Sponsored Jobs APIs and omits employer=<id> from its POST /oauth/v2/tokens request, so its tokens carry no employer claim.
-
If your app already passes
employer=<id>, stop here. -
If you already know the advertiser key, proceed to pass
employer=<id>in step 2.
Check your token scope
#To call GET /ads/v1/advertisers (direct integration), your access token needs employer.advertising.subaccount.read, or its parent employer.advertising.subaccount.
If your client calls GET /ads/v1/subaccounts or POST /ads/v1/subaccounts, your token already has one of these scopes, so go to step 1. GET requires employer.advertising.subaccount.read, and POST requires the parent employer.advertising.subaccount, which includes .read.
If you are not sure, continue to step 1 anyway — it requests a token without employer=<id>, which is enough in most cases. If GET /ads/v1/advertisers (direct integration) still returns 403 after that, add employer.advertising.subaccount.read to the scope= parameter on your POST /oauth/v2/tokens request.
1. One-time discovery
#Omit employer=<id> to get an account-scoped token, and keep your current scope= values.
POST https://apis.indeed.com/oauth/v2/tokensgrant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&scope=<your_existing_scope_set>GET https://apis.indeed.com/ads/v1/advertisersAuthorization: Bearer <account_token>Store the employerId from the response.
2. Add the employer parameter
#Keep your scope= unchanged, and add the employer=<id> parameter to every token request.
POST https://apis.indeed.com/oauth/v2/tokensgrant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&scope=<your_existing_scope_set>&employer=<your_employerId_from_step_1>2-legged OAuth — new client
#The mechanics match the existing-client flow, but you register an app first.
1. Create your app
#Create your app to get your client_id and client_secret.
2. One-time discovery
#Request a token with the discovery scope.
POST https://apis.indeed.com/oauth/v2/tokensgrant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&scope=employer.advertising.subaccount.readGET https://apis.indeed.com/ads/v1/advertisersAuthorization: Bearer <account_token>Store the employerId from the response.
3. Bind your tokens to that advertiser
#Add employer=<id> to every token request, and set scope= to the scopes your app needs. The following example shows only employer.advertising.subaccount.read — add any other scopes your app uses to the same scope= line.
POST https://apis.indeed.com/oauth/v2/tokensgrant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&scope=employer.advertising.subaccount.read&employer=<your_employerId_from_step_2>3-legged OAuth — existing client
#Use this path if your 3-legged OAuth app calls, or will call, any of these Sponsored Jobs endpoints:
GET /ads/v1/account(ATS integration)GET /ads/v1/subaccounts(ATS integration)POST /ads/v1/subaccounts(ATS integration)
-
If your app does not use these and does not plan to, stop here.
-
If you already know the advertiser key, proceed to pass
employer=<id>in step 2.
Check your token scope
#To call GET /ads/v1/advertisers (ATS integration), your access token needs employer.advertising.subaccount.read, or its parent employer.advertising.subaccount.
If your client calls GET /ads/v1/subaccounts (ATS integration) or POST /ads/v1/subaccounts (ATS integration), your token already has one of these scopes, so go to step 1. GET requires employer.advertising.subaccount.read, and POST requires the parent employer.advertising.subaccount, which includes .read.
If you are not sure, continue to step 1 anyway — it uses a token with no employer claim, which is enough in most cases. If GET /ads/v1/advertisers (ATS integration) still returns 403 after that, the grant is missing the scope — see Re-consent to add the discovery scope.
1. Discovery using your access token
#Call discovery with any account-scoped access token — one with no employer claim, which you get from refresh_token without passing employer=<id>.
If that token expired, refresh it with POST /oauth/v2/tokens and grant_type=refresh_token. Do not pass employer=<id> or change scope=. The new token keeps the same scopes and carries no employer claim, which is what discovery needs.
GET https://apis.indeed.com/ads/v1/advertisersAuthorization: Bearer <your_existing_account_scoped_token>Store the employerId from the response.
2. Refresh with the employer parameter
#Include employer=<id> on every refresh. That is the only change.
POST https://apis.indeed.com/oauth/v2/tokensgrant_type=refresh_token&refresh_token=YOUR_REFRESH_TOKEN&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&employer=<your_employerId_from_step_1>Re-consent to add the discovery scope
#Use this only if step 1 returns HTTP 403 insufficient_scope. Send the user through the consent screen again so Indeed adds the new scope to the grant, then resume step 1 with the fresh tokens.
A. Redirect the user
#Redirect the user to /oauth/v2/authorize with all your existing scopes plus employer.advertising.subaccount.read. Do not drop any scope you currently use.
https://secure.indeed.com/oauth/v2/authorize?client_id=YOUR_CLIENT_ID&response_type=code&redirect_uri=YOUR_REDIRECT_URI&scope=<YOUR_EXISTING_SCOPES>+employer.advertising.subaccount.read&state=YOUR_STATEB. Exchange the authorization code
#Exchange the authorization code without employer=<id>.
POST https://apis.indeed.com/oauth/v2/tokensContent-Type: application/x-www-form-urlencodedgrant_type=authorization_code&code=AUTHORIZATION_CODE&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&redirect_uri=YOUR_REDIRECT_URIThe response gives you a fresh account-scoped access_token and a new refresh_token.
C. Resume the main flow
#Resume from step 1 with the new access token: call GET /ads/v1/advertisers (ATS integration), then pass employer=<id> on every refresh.
Switch between advertisers
#Each access token represents the one advertiser you bound it to with employer=<id>. To act on a different advertiser, request a new token:
- 2-legged OAuth — send a new
client_credentialsrequest withemployer=<other_id>. - 3-legged OAuth — send a new
refresh_tokenrequest withemployer=<other_id>. No re-consent needed.
If the employer=<other_id> value is invalid or your account cannot access it, the token request fails with 400 invalid_request.
See also
#Guides
#- Client credentials grant type (2-legged OAuth) — Authorize your app to act on behalf of itself.
- Authorization code grant type (3-legged OAuth) — Authorize your app to act on behalf of Indeed user accounts and associated employer accounts.
References
#- OAuth reference — HTTP request headers, scopes, and API endpoints with request parameters and response fields.
- Error reference — Look up error codes, messages, and HTTP status codes for Indeed APIs.