This operation was normalized from a MapmyIndia-generation specification. Validate its current Mappls host, path, package entitlement, authentication generation, and commercial availability before production use.
Call the operation
https://outpost.mapmyindia.com/api/security/oauth/tokenhttps://outpost.mapmyindia.com/apiParameters
Body schema
grant_typerequiredThe grant type applicable to the token. By default, it is set at "clientcredentials".
client_credentialsclient_idrequiredThe client ID provided to thec client for accessing oAuth 2 based APIs.
YOUR_CLIENT_IDclient_secretrequiredThe client secret provided to thec client for accessing oAuth 2 based APIs.
YOUR_CLIENT_SECRET{
"grant_type": "client_credentials",
"client_id": "this-is-client-id-provided-to-client",
"client_secret": "this-is-client-secret-provided-to-client"
}Build your request in eight languages
Change source-backed examples once, validate required inputs, and copy the synchronized cURL, JavaScript, Python, Java, C#, Go, PHP, or Ruby request. Credentials remain environment references, and this page never sends a provider request.
https://outpost.mapmyindia.com/api/security/oauth/tokencurl --request POST \
--url 'https://outpost.mapmyindia.com/api/security/oauth/token' \
--header "Accept: application/json" \
--header "Authorization: Bearer ${MAPPLS_ACCESS_TOKEN}" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data-raw '{"grant_type":"client_credentials","client_id":"this-is-client-id-provided-to-client","client_secret":"this-is-client-secret-provided-to-client"}'Credential-safe by constructionSet MAPPLS_ACCESS_TOKEN only in your trusted runtime. Code generation stays local. Sandbox execution sends only bounded fixture inputs to this developer platform and never reads a credential or calls Mappls.
Send a production-shaped request
Examples use environment-backed access tokens, explicit timeouts where supported, status checks, and JSON bodies derived from the source schema. Replace sample identifiers and coordinates with values from your application.
curl --request POST \
--url 'https://outpost.mapmyindia.com/api/security/oauth/token' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"grant_type": "client_credentials",
"client_id": "this-is-client-id-provided-to-client",
"client_secret": "this-is-client-secret-provided-to-client"
}'Responses
OK
Bad request; User made an error while creating a valid request.
Unauthorized, if the clientID doesn’t exist or an invalid clientSecret is provided.
Forbidden.
Something went wrong.
Maintenance break.
200 response fields
access_tokenrequiredNo field description in the source contract.
YOUR_ACCESS_TOKENtoken_typerequiredNo field description in the source contract.
YOUR_ACCESS_TOKENexpires_inrequiredNo field description in the source contract.
86499scoperequiredNo field description in the source contract.
READproject_coderequiredNo field description in the source contract.
prj1234567890987654321client_idrequiredNo field description in the source contract.
YOUR_CLIENT_ID{
"access_token": "0XXXXXXf-dXX0-4XX0-8XXa-eXXXXXXXXXX6",
"token_type": "bearer",
"expires_in": 86499,
"scope": "READ",
"project_code": "prj1234567890987654321",
"client_id": "thisistheplace-whereyour-clientIdisprovidedback"
}Operate it safely
This operation is evaluated independently from the request. Cache and retry according to its documented semantics.
Contract provenance
- Source file
contenthub/dochub/mapmyindia-rest-api/docs/custom/tokenGeneration.yml- SHA-256
9db8784388d7bdb71cf6b3d3fedc21c9e97d85fbd0cee24e236d9c273daf7b13- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit